mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-04-21 20:35:35 +00:00
Remove a now-unneeded fix for offsetof on new versions of Visual Studio.
This commit is contained in:
parent
918509d59a
commit
ec4043604e
1 changed files with 0 additions and 7 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue