nalchi
Loading...
Searching...
No Matches
export.hpp
1#pragma once
2
3#if defined(NALCHI_BUILD_STATIC)
4
5#define NALCHI_API
6
7#elif defined(NALCHI_BUILD_EXPORT)
8
9#if defined(_WIN32)
10#define NALCHI_API __declspec(dllexport)
11#else
12#define NALCHI_API __attribute__((__visibility__("default")))
13#endif
14
15#else // NALCHI_BUILD_IMPORT
16
17#if defined(_WIN32)
18#define NALCHI_API __declspec(dllimport)
19#else
20#define NALCHI_API
21#endif
22
23#endif // NALCHI_BUILD
24
25#if defined(__cplusplus)
26#define NALCHI_FLAT_API extern "C" NALCHI_API
27#else
28#define NALCHI_FLAT_API NALCHI_API
29#endif