mirror of
https://github.com/VCMP-SqMod/SqMod.git
synced 2024-11-08 00:37:15 +01:00
Detect method to export symbols based on platform instead of compiler.
This commit is contained in:
parent
ba82f742e1
commit
b46535dedf
@ -106,7 +106,7 @@
|
|||||||
/* ------------------------------------------------------------------------------------------------
|
/* ------------------------------------------------------------------------------------------------
|
||||||
* API EXPORT.
|
* API EXPORT.
|
||||||
*/
|
*/
|
||||||
#if defined(_MSC_VER)
|
#if defined(SQMOD_OS_WINDOWS)
|
||||||
#define SQMOD_API_EXPORT extern "C" __declspec(dllexport)
|
#define SQMOD_API_EXPORT extern "C" __declspec(dllexport)
|
||||||
#elif defined(__GNUC__)
|
#elif defined(__GNUC__)
|
||||||
#define SQMOD_API_EXPORT extern "C"
|
#define SQMOD_API_EXPORT extern "C"
|
||||||
|
Loading…
Reference in New Issue
Block a user