Skip to content

Commit

Permalink
Add XR_X86/XR_X64 macros.
Browse files Browse the repository at this point in the history
  • Loading branch information
nitrocaster committed Jan 17, 2016
1 parent 0c54b40 commit 355c8b6
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/Common/Platform.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,12 @@
#error Unsupported platform
#endif

#if defined(_M_X64) || defined(__amd64__)
#define XR_X64
#else
#define XR_X86
#endif

#ifdef __GNUC__
#define XR_EXPORT __attribute__ ((visibility("default")))
#define XR_IMPORT __attribute__ ((visibility("default")))
Expand Down

0 comments on commit 355c8b6

Please sign in to comment.