Browse Source

Fix for static linking using mingw

Gabriel Jacobo 13 years ago
parent
commit
428fda50f8
1 changed files with 4 additions and 0 deletions
  1. 4 0
      Include/Rocket/Core/Python/Header.h

+ 4 - 0
Include/Rocket/Core/Python/Header.h

@@ -30,6 +30,7 @@
 
 #include <Rocket/Core/Platform.h>
 
+#if !defined STATIC_LIB
 #if defined ROCKET_PLATFORM_WIN32
 	#if defined RocketCorePython_EXPORTS
 		#define ROCKETCOREPYTHON_API __declspec(dllexport)
@@ -39,5 +40,8 @@
 #else
 	#define ROCKETCOREPYTHON_API __attribute__((visibility("default")))
 #endif
+#else
+	#define ROCKETCOREPYTHON_API
+#endif
 
 #endif