fix bug #5384 -- define DLL_EXPORT in DLL builds and adjust begin_code.h

This commit is contained in:
Ozkan Sezer committed 2020-12-09 12:01:10 +03:00
1 parent 50203d58b3
commit 250a055727
6 files changed
+26 -28

No files matched your search

+2 -8
View File
@@ -51,14 +51,8 @@
/* Some compilers use a special export keyword */
#ifndef DECLSPEC
# if defined(__WIN32__) || defined(__WINRT__)
# ifdef __BORLANDC__
# ifdef BUILD_SDL
# define DECLSPEC
# else
# define DECLSPEC __declspec(dllimport)
# endif
# elif defined(_DLL)
# if defined(__WIN32__) || defined(__WINRT__) || defined(__CYGWIN__)
# ifdef DLL_EXPORT
# define DECLSPEC __declspec(dllexport)
# else
# define DECLSPEC