Skip to content

Commit

Permalink
Platform.h: Add GCC versions of XR_IMPORT/XR_EXPORT.
Browse files Browse the repository at this point in the history
  • Loading branch information
nitrocaster committed Jan 17, 2016
1 parent 47c7cd8 commit 138d55f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/xrCore/Platform.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,13 @@
# define _WIN32_WINNT 0x0501
#endif

#ifdef __GNUC__
#define XR_EXPORT __attribute__ ((visibility("default")))
#define XR_IMPORT __attribute__ ((visibility("default")))
#else // _MSC_VER
#define XR_EXPORT __declspec(dllexport)
#define XR_IMPORT __declspec(dllimport)
#endif

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

0 comments on commit 138d55f

Please sign in to comment.