Эх сурвалжийг харах

[ue4] Don't redefine SP_API in dll.h, seems UBT passes -werror,-wmacro-redefine to compiler by default. Closes #994

badlogic 8 жил өмнө
parent
commit
786f24c7dc

+ 2 - 2
spine-c/spine-c/include/spine/dll.h

@@ -31,8 +31,6 @@
 #ifndef SPINE_SHAREDLIB_H
 #define SPINE_SHAREDLIB_H
 
-#define SP_API
-
 #ifdef _WIN32
 	#define DLLIMPORT __declspec(dllimport)
 	#define DLLEXPORT __declspec(dllexport)
@@ -43,6 +41,8 @@
 
 #ifdef SPINEPLUGIN_API
 	#define SP_API SPINEPLUGIN_API
+#else
+	#define SP_API
 #endif
 
 #endif /* SPINE_SHAREDLIB_H */