libretro: So apparently, _XOPEN_SOURCE has to be at the top of the file. Hopefully this makes both GCC14 users and Mac users happy. (Related to commit 779606e
. Based on PR #793.)
This commit is contained in:
parent
779606ec2f
commit
6309a9c6a7
|
@ -20,6 +20,12 @@
|
|||
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
*/
|
||||
|
||||
#ifdef __MACH__
|
||||
#define _DARWIN_C_SOURCE /* As below, plus strl* functions */
|
||||
#else
|
||||
#define _XOPEN_SOURCE 500 /* For strdup, realpath */
|
||||
#endif
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <boolean.h>
|
||||
#include <string.h>
|
||||
|
@ -31,7 +37,6 @@
|
|||
#include <file/file_path.h>
|
||||
|
||||
#ifndef __MACH__
|
||||
#define _XOPEN_SOURCE 500 /* For strdup, realpath */
|
||||
#include <compat/strl.h>
|
||||
#include <compat/posix_string.h>
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue