aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/include/janet.h
diff options
context:
space:
mode:
authorJason Pepas <jasonpepas@gmail.com>2022-03-17 01:20:55 -0500
committerJason Pepas <jasonpepas@gmail.com>2022-03-17 01:20:55 -0500
commitf270739f9fd2e2c7617082eeff064c68e54d1962 (patch)
tree039e8fec2b3c4510fb8adea43170d0bc339aa3ae /src/include/janet.h
parentMerge pull request #931 from saikyun/norm-neg (diff)
Refactor __MACH__ to JANET_APPLE
Diffstat (limited to 'src/include/janet.h')
-rw-r--r--src/include/janet.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/include/janet.h b/src/include/janet.h
index 4f7763f9..50bce86d 100644
--- a/src/include/janet.h
+++ b/src/include/janet.h
@@ -57,8 +57,8 @@ extern "C" {
#define JANET_BSD 1
#endif
-/* Check for Mac */
-#ifdef __APPLE__
+/* Check for macOS or OS X */
+#if defined(__APPLE__) && defined(__MACH__)
#define JANET_APPLE 1
#endif