1
0
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:
Sandu Liviu Catalin 2021-09-10 00:13:15 +03:00
parent ba82f742e1
commit b46535dedf

View File

@ -106,7 +106,7 @@
/* ------------------------------------------------------------------------------------------------
* API EXPORT.
*/
#if defined(_MSC_VER)
#if defined(SQMOD_OS_WINDOWS)
#define SQMOD_API_EXPORT extern "C" __declspec(dllexport)
#elif defined(__GNUC__)
#define SQMOD_API_EXPORT extern "C"