summaryrefslogtreecommitdiff
path: root/prelude
diff options
context:
space:
mode:
Diffstat (limited to 'prelude')
-rw-r--r--prelude/slang-cpp-prelude.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/prelude/slang-cpp-prelude.h b/prelude/slang-cpp-prelude.h
index f9c77cd91..b11af0907 100644
--- a/prelude/slang-cpp-prelude.h
+++ b/prelude/slang-cpp-prelude.h
@@ -224,6 +224,12 @@ Any platforms not detected by the above logic are now now explicitly zeroed out.
// GCC Specific
#if SLANG_GCC_FAMILY
+#if INTPTR_MAX == INT64_MAX
+#define SLANG_64BIT 1
+#else
+#define SLANG_64BIT 0
+#endif
+
#define SLANG_BREAKPOINT(id) __builtin_trap()
// Use this macro instead of offsetof, because gcc produces warning if offsetof is used on a