diff --git a/loader/include/Geode/cocos/include/ccMacros.h b/loader/include/Geode/cocos/include/ccMacros.h index d0313fd6..0c98e27a 100644 --- a/loader/include/Geode/cocos/include/ccMacros.h +++ b/loader/include/Geode/cocos/include/ccMacros.h @@ -245,7 +245,7 @@ It should work same as apples CFSwapInt32LittleToHost(..) Increments the GL Draws counts by one. The number of calls per frame are displayed on the screen when the CCDirector's stats are enabled. */ -extern unsigned int __declspec(dllimport) g_uNumberOfDraws; +extern unsigned int ACTUAL_CC_DLL g_uNumberOfDraws; #define CC_INCREMENT_GL_DRAWS(__n__) g_uNumberOfDraws += __n__ /*******************/ diff --git a/loader/include/Geode/cocos/platform/android/CCPlatformDefine.h b/loader/include/Geode/cocos/platform/android/CCPlatformDefine.h index b46a03c0..93fe1c46 100644 --- a/loader/include/Geode/cocos/platform/android/CCPlatformDefine.h +++ b/loader/include/Geode/cocos/platform/android/CCPlatformDefine.h @@ -8,6 +8,7 @@ #else #define CC_DLL #endif +#define ACTUAL_CC_DLL CC_DLL #define CC_NO_MESSAGE_PSEUDOASSERT(cond) \ if (!(cond)) { \ diff --git a/loader/include/Geode/cocos/platform/ios/CCPlatformDefine.h b/loader/include/Geode/cocos/platform/ios/CCPlatformDefine.h index c77c38ba..74bc5d07 100644 --- a/loader/include/Geode/cocos/platform/ios/CCPlatformDefine.h +++ b/loader/include/Geode/cocos/platform/ios/CCPlatformDefine.h @@ -8,6 +8,7 @@ #else #define CC_DLL #endif +#define ACTUAL_CC_DLL CC_DLL #define CC_ASSERT(cond) assert(cond) diff --git a/loader/include/Geode/cocos/platform/mac/CCPlatformDefine.h b/loader/include/Geode/cocos/platform/mac/CCPlatformDefine.h index 8455edc4..e542eecb 100644 --- a/loader/include/Geode/cocos/platform/mac/CCPlatformDefine.h +++ b/loader/include/Geode/cocos/platform/mac/CCPlatformDefine.h @@ -8,6 +8,7 @@ #else #define CC_DLL #endif +#define ACTUAL_CC_DLL CC_DLL #if CC_DISABLE_ASSERT > 0 diff --git a/loader/include/Geode/cocos/platform/win32/CCPlatformDefine.h b/loader/include/Geode/cocos/platform/win32/CCPlatformDefine.h index 913a42df..7289e78c 100644 --- a/loader/include/Geode/cocos/platform/win32/CCPlatformDefine.h +++ b/loader/include/Geode/cocos/platform/win32/CCPlatformDefine.h @@ -9,8 +9,10 @@ #if defined(_USRDLL) #define CC_DLL + #define ACTUAL_CC_DLL #else // use a DLL library #define CC_DLL + #define ACTUAL_CC_DLL __declspec(dllimport) #endif #include