summaryrefslogtreecommitdiffstats
path: root/prelude/slang-cpp-host-prelude.h
diff options
context:
space:
mode:
Diffstat (limited to 'prelude/slang-cpp-host-prelude.h')
-rw-r--r--prelude/slang-cpp-host-prelude.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/prelude/slang-cpp-host-prelude.h b/prelude/slang-cpp-host-prelude.h
index 8bc0f5cad..66f74052c 100644
--- a/prelude/slang-cpp-host-prelude.h
+++ b/prelude/slang-cpp-host-prelude.h
@@ -28,6 +28,13 @@
#include <string.h>
#endif // SLANG_LLVM
+// Is intptr_t not equal to equal-width sized integer type?
+#if defined(__APPLE__)
+#define SLANG_INTPTR_TYPE_IS_DISTINCT 1
+#else
+#define SLANG_INTPTR_TYPE_IS_DISTINCT 0
+#endif
+
#if defined(_MSC_VER)
#define SLANG_PRELUDE_SHARED_LIB_EXPORT __declspec(dllexport)
#else