Prevent ARRAYSIZE undef

This commit is contained in:
GAMMACASE 2025-04-17 21:12:51 +03:00 committed by Nicholas Hastings
parent 6091f15217
commit 624c8a9f1d
2 changed files with 2 additions and 3 deletions

View File

@ -139,6 +139,7 @@ class MMSConfig(object):
'-fno-rtti',
'-fno-threadsafe-statics',
'-Wno-non-virtual-dtor',
'-Wno-class-memaccess',
'-Wno-overloaded-virtual',
'-Wno-register',
]

View File

@ -34,9 +34,7 @@
#if defined __WIN32__ || defined _WIN32 || defined WIN32
#define WIN32_LEAN_AND_MEAN
#define OS_WIN32
#if defined _MSC_VER && _MSC_VER >= 1400
#undef ARRAYSIZE
#else
#if !defined _MSC_VER || _MSC_VER < 1400
#define mkdir(a) _mkdir(a)
#endif
#include <windows.h>