fixup IKA_API os detection
This commit is contained in:
parent
8ecb719b92
commit
6d881e776f
1 changed files with 19 additions and 14 deletions
|
|
@ -1,17 +1,22 @@
|
|||
#pragma once
|
||||
|
||||
#define IKA_API
|
||||
|
||||
#if defined(__unix__)
|
||||
#if defined(_WIN32)
|
||||
#define IKA_OS_FAMILY_WINDOWS
|
||||
#define IKA_OS_WIN
|
||||
#define IKA_API __declspec(dllexport)
|
||||
#else
|
||||
#define IKA_OS_FAMILY_UNIX
|
||||
#define IKA_API __attribute__((visibility("default")))
|
||||
|
||||
#if defined(linux)
|
||||
#define IKA_OS_LINUX
|
||||
#elif defined(__APPLE__)
|
||||
#define IKA_OS_MAC
|
||||
#endif
|
||||
#elif defined(_WIN32)
|
||||
#define IKA_OS_WIN
|
||||
#define IKA_API __declspec(dllexport)
|
||||
#endif
|
||||
|
||||
#ifndef IKA_API
|
||||
#define IKA_API
|
||||
#endif
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue