diff --git a/cocos/3d/3dExport.h b/cocos/3d/3dExport.h index 2639bab2eb..e2066a0f28 100644 --- a/cocos/3d/3dExport.h +++ b/cocos/3d/3dExport.h @@ -6,13 +6,16 @@ #include #endif - #if defined(_USE3DDLL) - #define CC_3D_DLL __declspec(dllexport) - #else /* use a DLL library */ - #define CC_3D_DLL __declspec(dllimport) + #if defined(CC_STATIC) + #define CC_3D_DLL + #else + #if defined(_USE3DDLL) + #define CC_3D_DLL __declspec(dllexport) + #else /* use a DLL library */ + #define CC_3D_DLL __declspec(dllimport) + #endif #endif - /* Define NULL pointer value */ #ifndef NULL #ifdef __cplusplus