mirror of
https://gitlab.com/embeddable-common-lisp/ecl.git
synced 2026-01-02 15:40:55 -08:00
The ECL_API flags are now defined in config.h. We must also copy them to config.h.msvc6
This commit is contained in:
parent
2cb141c3ba
commit
f5b444d4ca
1 changed files with 24 additions and 0 deletions
|
|
@ -13,6 +13,30 @@
|
|||
See file '../Copyright' for full details.
|
||||
*/
|
||||
|
||||
/*
|
||||
* If ECL_API has been predefined, that means we are building the core
|
||||
* library and, under windows, we must tell the compiler to export
|
||||
* extern functions from the shared library.
|
||||
* If ECL_API is not defined, we are simply building an application that
|
||||
* uses ECL and, under windows, we must tell the compiler that certain
|
||||
* will be imported from a DLL.
|
||||
*/
|
||||
#if defined(mingw32) || defined(_MSC_VER) || defined(cygwin)
|
||||
# define ECL_DLLEXPORT __declspec(dllexport)
|
||||
# ifdef ECL_API
|
||||
# undef ECL_API
|
||||
# define ECL_API __declspec(dllexport)
|
||||
# else
|
||||
# define ECL_API __declspec(dllimport)
|
||||
# endif
|
||||
#else
|
||||
# define ECL_DLLEXPORT
|
||||
# ifdef ECL_API
|
||||
# undef ECL_API
|
||||
# endif
|
||||
# define ECL_API
|
||||
#endif
|
||||
|
||||
/*
|
||||
* FEATURES LINKED IN
|
||||
*/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue