1
0
mirror of https://github.com/VCMP-SqMod/SqMod.git synced 2024-11-08 08:47:17 +01:00

Detect method to export symbols based on platform instead of compiler.

This commit is contained in:
Sandu Liviu Catalin 2021-09-10 00:13:15 +03:00
parent ba82f742e1
commit b46535dedf

View File

@ -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"