Do not set XOPEN__SOURCE when USE_COCOA is set

Signed-off-by: yubiuser <github@yubiuser.dev>
This commit is contained in:
yubiuser 2024-08-18 22:01:30 +02:00
parent c62054609a
commit d04bbfe89b
No known key found for this signature in database

View File

@ -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