mirror of
https://github.com/ashinn/chibi-scheme.git
synced 2025-05-19 13:49:17 +02:00
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:
parent
6a35a95dfc
commit
3d4e8bb3e6
1 changed files with 4 additions and 0 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Reference in a new issue