From b46535dedfebde943fc6b0f643b427115393233f Mon Sep 17 00:00:00 2001 From: Sandu Liviu Catalin Date: Fri, 10 Sep 2021 00:13:15 +0300 Subject: [PATCH] Detect method to export symbols based on platform instead of compiler. --- module/SqBase.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/SqBase.hpp b/module/SqBase.hpp index bc63e456..d84e466a 100644 --- a/module/SqBase.hpp +++ b/module/SqBase.hpp @@ -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"