summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorShinichiro Hamaji <shinichiro.hamaji@gmail.com>2017-05-09 08:22:38 (GMT)
committerShinichiro Hamaji <shinichiro.hamaji@gmail.com>2017-05-09 08:22:38 (GMT)
commitee9d4877829b76094dbcff089411e6bc2c3468cc (patch)
tree3f402270256be256c5d30893fa95ac53ac38ce3b /src
parentc4814b729a950131ce143376869f7900c6c147dc (diff)
downloadglog-ee9d4877829b76094dbcff089411e6bc2c3468cc.zip
glog-ee9d4877829b76094dbcff089411e6bc2c3468cc.tar.gz
glog-ee9d4877829b76094dbcff089411e6bc2c3468cc.tar.bz2
Define OS_LINUX only if it's not defined yet
Diffstat (limited to 'src')
-rw-r--r--src/utilities.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/utilities.h b/src/utilities.h
index 5f79968..101ca64 100644
--- a/src/utilities.h
+++ b/src/utilities.h
@@ -39,7 +39,9 @@
#elif defined(__CYGWIN__) || defined(__CYGWIN32__)
# define OS_CYGWIN
#elif defined(linux) || defined(__linux) || defined(__linux__)
-# define OS_LINUX
+# ifndef OS_LINUX
+# define OS_LINUX
+# endif
#elif defined(macintosh) || defined(__APPLE__) || defined(__APPLE_CC__)
# define OS_MACOSX
#elif defined(__FreeBSD__)