Introduce SEXP_STATIC_LIBRARY

Introduce SEXP_STATIC_LIBRARY to support static-library build on
Win32/Win64. On Win32, symbol visibility is enforced on DLL builds so we
need to dedicated ABI on static-library builds.
This commit is contained in:
okuoku 2019-06-23 05:45:44 +09:00
parent 6a35a95dfc
commit 3d4e8bb3e6

View file

@ -846,11 +846,15 @@
#endif #endif
#ifdef _WIN32 #ifdef _WIN32
#ifdef SEXP_STATIC_LIBRARY
#define SEXP_API extern
#else
#ifdef BUILDING_DLL #ifdef BUILDING_DLL
#define SEXP_API __declspec(dllexport) #define SEXP_API __declspec(dllexport)
#else #else
#define SEXP_API __declspec(dllimport) #define SEXP_API __declspec(dllimport)
#endif #endif
#endif
#else #else
#define SEXP_API extern #define SEXP_API extern
#endif #endif