Browse Source

Avoid warnings for Xopen 7.00 and higher (see #364)

bel2125 8 năm trước cách đây
mục cha
commit
62c81826b2
1 tập tin đã thay đổi với 6 bổ sung0 xóa
  1. 6 0
      src/civetweb.c

+ 6 - 0
src/civetweb.c

@@ -127,6 +127,12 @@ mg_static_assert(sizeof(void *) >= sizeof(int), "data type size check");
 
 #ifdef __MACH__
 
+#ifdef __clang__
+/* Avoid warnings for Xopen 7.00 and higher */
+#pragma clang diagnostic ignored "-Wno-reserved-id-macro"
+#pragma clang diagnostic ignored "-Wno-keyword-macro"
+#endif
+
 #define CLOCK_MONOTONIC (1)
 #define CLOCK_REALTIME (2)