From b38dc220be3948778e3c9233a42da5269aa02600 Mon Sep 17 00:00:00 2001 From: Isuru Samarathunga Date: Fri, 3 Oct 2025 19:39:54 +0530 Subject: [PATCH] Fixes --- Src/IACore/inc/hpp/IACore/Definitions.hpp | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/Src/IACore/inc/hpp/IACore/Definitions.hpp b/Src/IACore/inc/hpp/IACore/Definitions.hpp index 2f35f41..58767f5 100644 --- a/Src/IACore/inc/hpp/IACore/Definitions.hpp +++ b/Src/IACore/inc/hpp/IACore/Definitions.hpp @@ -152,6 +152,17 @@ #define IA_VERSION_TYPE UINT64 #define IA_MAKE_VERSION(major, minor, patch) ((static_cast(major) & 0xFFFFFF) << 40) | ((static_cast(minor) & 0xFFFFFF) << 16) | (static_cast(patch) & 0xFFFF) +#if defined(_MSC_VER) + #define IA_DLL_EXPORT __declspec(dllexport) + #define IA_DLL_IMPORT __declspec(dllimport) +#elif defined(__GNUC__) + #define IA_DLL_EXPORT __attribute__((visibility("default"))) + #define IA_DLL_IMPORT +#else + #define IA_DLL_EXPORT + #define IA_DLL_IMPORT +#endif + #define __CC_BLACK "\033[30m" #define __CC_RED "\033[31m" #define __CC_GREEN "\033[32m"