소스 검색

Merge branch 'master' of https://github.com/civetweb/civetweb

bel2125 4 년 전
부모
커밋
bc9087f431
1개의 변경된 파일3개의 추가작업 그리고 1개의 파일을 삭제
  1. 3 1
      src/main.c

+ 3 - 1
src/main.c

@@ -41,7 +41,7 @@
 #pragma GCC diagnostic push
 #pragma GCC diagnostic ignored "-Wreserved-id-macro"
 #endif
-
+#if !defined(_XOPEN_SOURCE)
 #define _XOPEN_SOURCE 600 /* For PATH_MAX on linux */
 /* This should also be sufficient for "realpath", according to
  * http://man7.org/linux/man-pages/man3/realpath.3.html, but in
@@ -51,6 +51,7 @@
  * #pragma clang diagnostic ignored "-Wimplicit-function-declaration"
  */
 #endif
+#endif
 
 #if !defined(IGNORE_UNUSED_RESULT)
 #define IGNORE_UNUSED_RESULT(a) ((void)((a) && 1))
@@ -3317,3 +3318,4 @@ main(int argc, char *argv[])
 	return EXIT_SUCCESS;
 }
 #endif /* _WIN32 */
+#undef printf