Explorar o código

added define for static libs

LEvertz %!s(int64=10) %!d(string=hai) anos
pai
achega
71871610e7
Modificáronse 1 ficheiros con 7 adicións e 3 borrados
  1. 7 3
      src/ua_config.h.in

+ 7 - 3
src/ua_config.h.in

@@ -21,10 +21,14 @@
       #define UA_EXPORT __declspec(dllexport)
     #endif
   #else
-    #ifdef __GNUC__
-      #define UA_EXPORT __attribute__ ((dllimport))
+    #ifndef STATIC_LINKING
+    	#ifdef __GNUC__
+      		#define UA_EXPORT __attribute__ ((dllimport))
+    	#else
+      		#define UA_EXPORT __declspec(dllimport)
+    	#endif
     #else
-      #define UA_EXPORT __declspec(dllimport)
+    	#define UA_EXPORT
     #endif
   #endif
 #else