Browse Source

added define for static libs

LEvertz 10 years ago
parent
commit
71871610e7
1 changed files with 7 additions and 3 deletions
  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