NAH 1.0.6
Native Application Host - Library API Reference
Loading...
Searching...
No Matches
export.hpp
Go to the documentation of this file.
1#ifndef NAH_EXPORT_HPP
2#define NAH_EXPORT_HPP
3
17#if defined(_WIN32) || defined(_WIN64)
18 // Windows
19 #ifdef NAH_BUILDING_SHARED
20 #define NAH_API __declspec(dllexport)
21 #elif defined(NAH_SHARED)
22 #define NAH_API __declspec(dllimport)
23 #else
24 #define NAH_API
25 #endif
26#elif defined(__GNUC__) || defined(__clang__)
27 // GCC/Clang - use visibility attribute for shared libraries
28 #ifdef NAH_BUILDING_SHARED
29 #define NAH_API __attribute__((visibility("default")))
30 #else
31 #define NAH_API
32 #endif
33#else
34 // Other compilers - no decoration
35 #define NAH_API
36#endif
37
38#endif // NAH_EXPORT_HPP