summaryrefslogtreecommitdiff
blob: 5268ea1d0a166299f364d3e39dd1cb9b0c695281 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
--- src/include/c.h
+++ src/include/c.h
@@ -85,6 +85,10 @@
 #include <SupportDefs.h>
 #endif
 
+#ifdef __APPLE_CC__
+#undef bool
+#endif
+
 #if defined(WIN32) || defined(__CYGWIN__)
 /* We have to redefine some system functions after they are included above. */
 #include "pg_config_os.h"
--- src/test/thread/thread_test.c
+++ src/test/thread/thread_test.c
@@ -23,6 +23,9 @@
 #if !defined(IN_CONFIGURE) && !defined(WIN32)
 #include "postgres.h"
 #else
+#ifdef __APPLE_CC__
+#undef bool
+#endif
 /* From src/include/c.h" */
 #ifndef bool
 typedef char bool;