Selaa lähdekoodia

Merge pull request #2234 from Areloch/DeprecatedMSVCFix

Remove a now-unneeded fix for offsetof on new versions of Visual Studio.
Areloch 7 vuotta sitten
vanhempi
commit
c44457397f
1 muutettua tiedostoa jossa 0 lisäystä ja 7 poistoa
  1. 0 7
      Engine/source/console/consoleTypes.h

+ 0 - 7
Engine/source/console/consoleTypes.h

@@ -48,13 +48,6 @@ template<typename T> inline const T nullAsType(){ return nullptr; }
 /// @ingroup console_system Console System
 /// @ingroup console_system Console System
 /// @{
 /// @{
 
 
-#if _MSC_VER >= 1911
-   #ifdef offsetof
-      #undef offsetof
-   #endif // offsetof
-   #define offsetof(s,m) ((size_t)&reinterpret_cast<char const volatile&>((((s*)0)->m)))
-#endif
-
 #ifndef Offset
 #ifndef Offset
 #define Offset(x, cls) offsetof(cls, x)
 #define Offset(x, cls) offsetof(cls, x)
 #endif
 #endif