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

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

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