summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael <mbebenita@Michaels-MacBook-Pro-4.local>2016-01-26 17:52:14 -0800
committerMichael <mbebenita@Michaels-MacBook-Pro-4.local>2016-01-26 17:52:14 -0800
commit3ab7b505d3ccfe2351eea8e3ccb1a5c958b27886 (patch)
treeaecfc01ddf43a1ae52fddf9944a98b19d78ace41
parent31c6f4b2b0d79e7fe1e801432537e627d11f3091 (diff)
downloadbinaryen-3ab7b505d3ccfe2351eea8e3ccb1a5c958b27886.tar.gz
binaryen-3ab7b505d3ccfe2351eea8e3ccb1a5c958b27886.tar.bz2
binaryen-3ab7b505d3ccfe2351eea8e3ccb1a5c958b27886.zip
Fix colors on OSX.
Apple OSes define __APPLE__ instead of the lower case __apple__.
-rw-r--r--src/support/colors.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/support/colors.cpp b/src/support/colors.cpp
index 7310427e4..94f8bedc9 100644
--- a/src/support/colors.cpp
+++ b/src/support/colors.cpp
@@ -19,7 +19,7 @@
#include <cstdlib>
#include <ostream>
-#if defined(__linux__) || defined(__apple__)
+#if defined(__linux__) || defined(__APPLE__)
# define CAN_HAZ_COLOR 1
# include <unistd.h>
#endif