mirror of
https://github.com/ashinn/chibi-scheme.git
synced 2025-05-19 05:39:18 +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
|
||||
|
||||
#ifdef _WIN32
|
||||
#ifdef SEXP_STATIC_LIBRARY
|
||||
#define SEXP_API extern
|
||||
#else
|
||||
#ifdef BUILDING_DLL
|
||||
#define SEXP_API __declspec(dllexport)
|
||||
#else
|
||||
#define SEXP_API __declspec(dllimport)
|
||||
#endif
|
||||
#endif
|
||||
#else
|
||||
#define SEXP_API extern
|
||||
#endif
|
||||
|
|
Loading…
Add table
Reference in a new issue