Skip to content

Commit 138d55f

Browse files
author
nitrocaster
committed
Platform.h: Add GCC versions of XR_IMPORT/XR_EXPORT.
1 parent 47c7cd8 commit 138d55f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/xrCore/Platform.hpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,13 @@
1616
# define _WIN32_WINNT 0x0501
1717
#endif
1818

19+
#ifdef __GNUC__
20+
#define XR_EXPORT __attribute__ ((visibility("default")))
21+
#define XR_IMPORT __attribute__ ((visibility("default")))
22+
#else // _MSC_VER
1923
#define XR_EXPORT __declspec(dllexport)
2024
#define XR_IMPORT __declspec(dllimport)
25+
#endif
2126

2227
// inline control - redefine to use compiler's heuristics ONLY
2328
// it seems "IC" is misused in many places which cause code-bloat

0 commit comments

Comments
 (0)