From 146d9b820115e96e2f5f46b79c553fe9e2266c56 Mon Sep 17 00:00:00 2001 From: Mikhail Paulyshka Date: Sun, 24 Sep 2017 14:32:30 +0300 Subject: [PATCH] win32: fix symbols leakage for static libraries --- include/begin_code.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/include/begin_code.h b/include/begin_code.h index 170d69ec5..1eb2f9cc2 100644 --- a/include/begin_code.h +++ b/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