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"