summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornot-a-robot <not-a-robot@rediger.net>2016-04-20 15:52:12 +0200
committernot-a-robot <not-a-robot@rediger.net>2016-04-20 15:52:12 +0200
commitcec13a9c4670fd245d876d8c54348bd9612c4a17 (patch)
tree88d83fbb5b4d9cdbc627513f60b7410a2045229c
parent36bddcf6ed31c9ce4fa3f1b6b88275a801d78bc1 (diff)
parent9317a74ae5524d68c62fc7cabdb37a1b5e9a8ae1 (diff)
Auto merge of #407 - xor-gate:fix-wundef-warning, r=badboy
fmacros.h: Fix warning when compiled with -Wundef When compiling with the flag `-Wundef` the following warning is emitted: ``` [ 40%] Building C object CMakeFiles/hiredis-STATIC.dir/read.c.o In file included from /data/files/users/jerry/github/hiredis/read.c:33:0: /data/files/users/jerry/github/hiredis/fmacros.h:17:5: warning: "__APPLE__" is not defined [-Wundef] #if __APPLE__ && __MACH__ ^ In file included from /usr/include/string.h:25:0, from /data/files/users/jerry/github/hiredis/read.c:34: ```
-rw-r--r--fmacros.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/fmacros.h b/fmacros.h
index 19d7b21..82ff08d 100644
--- a/fmacros.h
+++ b/fmacros.h
@@ -14,7 +14,7 @@
#define _XOPEN_SOURCE
#endif
-#if __APPLE__ && __MACH__
+#if defined(__APPLE__) && defined(__MACH__)
#define _OSX
#endif