fixup IKA_API os detection

Signed-off-by: Folling <mail@folling.io>
This commit is contained in:
folling 2025-01-05 14:26:55 +01:00 committed by Folling
parent f7b911bef5
commit 124b739bde
Signed by: folling
SSH key fingerprint: SHA256:S9qEx5WCFFLK49tE/LKnKuJYM5sw+++Dn6qJbbyxnCY

View file

@ -1,17 +1,22 @@
#pragma once #pragma once
#define IKA_API #if defined(_WIN32)
#define IKA_OS_FAMILY_WINDOWS
#if defined(__unix__) #define IKA_OS_WIN
#define IKA_API __declspec(dllexport)
#else
#define IKA_OS_FAMILY_UNIX #define IKA_OS_FAMILY_UNIX
#define IKA_API __attribute__((visibility("default"))) #define IKA_API __attribute__((visibility("default")))
#if defined(linux) #if defined(linux)
#define IKA_OS_LINUX #define IKA_OS_LINUX
#elif defined(__APPLE__)
#define IKA_OS_MAC
#endif #endif
#elif defined(_WIN32) #endif
#define IKA_OS_WIN
#define IKA_API __declspec(dllexport) #ifndef IKA_API
#define IKA_API
#endif #endif
#ifdef __cplusplus #ifdef __cplusplus