ソースを参照

Merge pull request #932 from Dialga/patch-1

Update main.c
bel2125 4 年 前
コミット
c2918246bc
1 ファイル変更2 行追加1 行削除
  1. 2 1
      src/main.c

+ 2 - 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))