Browse Source

fix mingw crosscompiling

Julius Pfrommer 10 years ago
parent
commit
c9f8561c88
1 changed files with 3 additions and 7 deletions
  1. 3 7
      src/ua_config.h.in

+ 3 - 7
src/ua_config.h.in

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