Ver Fonte

Do not set XOPEN__SOURCE when USE_COCOA is set

Signed-off-by: yubiuser <github@yubiuser.dev>
yubiuser há 10 meses atrás
pai
commit
d04bbfe89b
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      src/main.c

+ 1 - 1
src/main.c

@@ -41,7 +41,7 @@
 #pragma GCC diagnostic push
 #pragma GCC diagnostic ignored "-Wreserved-id-macro"
 #endif
-#if !defined(_XOPEN_SOURCE)
+#if !defined(_XOPEN_SOURCE) && !defined(USE_COCOA)
 #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