Skip to content

Commit 355c8b6

Browse files
author
nitrocaster
committed
Add XR_X86/XR_X64 macros.
1 parent 0c54b40 commit 355c8b6

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/Common/Platform.hpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,12 @@
99
#error Unsupported platform
1010
#endif
1111

12+
#if defined(_M_X64) || defined(__amd64__)
13+
#define XR_X64
14+
#else
15+
#define XR_X86
16+
#endif
17+
1218
#ifdef __GNUC__
1319
#define XR_EXPORT __attribute__ ((visibility("default")))
1420
#define XR_IMPORT __attribute__ ((visibility("default")))

0 commit comments

Comments
 (0)