vcpkg/ports/sdl2/export-symbols-only-in-shared-build.patch
2017-07-21 13:01:00 +02:00

17 lines
401 B
Diff

diff --git a/include/begin_code.h b/include/begin_code.h
index 04e78c6..16464f5 100644
--- a/include/begin_code.h
+++ b/include/begin_code.h
@@ -58,8 +58,10 @@
# else
# define DECLSPEC __declspec(dllimport)
# endif
-# else
+# elif defined(SDL2_EXPORTS)
# define DECLSPEC __declspec(dllexport)
+# else
+# define DECLSPEC
# endif
# else
# if defined(__GNUC__) && __GNUC__ >= 4