Browse Source

win32: fix symbols leakage for static libraries

Mikhail Paulyshka 7 years ago
parent
commit
146d9b8201
1 changed files with 3 additions and 1 deletions
  1. 3 1
      include/begin_code.h

+ 3 - 1
include/begin_code.h

@@ -58,8 +58,10 @@
 #   else
 #    define DECLSPEC    __declspec(dllimport)
 #   endif
-#  else
+#  elif defined(_DLL)
 #   define DECLSPEC __declspec(dllexport)
+#  else
+#   define DECLSPEC
 #  endif
 # elif defined(__OS2__)
 #   ifdef BUILD_SDL