mirror of
https://github.com/mackron/miniaudio.git
synced 2026-04-23 00:34:03 +02:00
Update fs.
This commit is contained in:
Vendored
+11
-4
@@ -4,13 +4,20 @@
|
|||||||
#include "fs.h"
|
#include "fs.h"
|
||||||
|
|
||||||
/* TODO: Remove this. To replicate errors, Just comment out this _XOPEN_SOURCE section and compile with `-std=c89` on GCC. */
|
/* TODO: Remove this. To replicate errors, Just comment out this _XOPEN_SOURCE section and compile with `-std=c89` on GCC. */
|
||||||
/* This is for `-std=c89` compatibility. Without this there will be a few pthread related issues as well as some stdio functions being unavailable. They will need workarounds. */
|
/*
|
||||||
#ifndef _XOPEN_SOURCE
|
This is for `-std=c89` compatibility. Without this there will be a few pthread related issues as well as some stdio
|
||||||
#define _XOPEN_SOURCE 700
|
functions being unavailable. They will need workarounds.
|
||||||
#else
|
|
||||||
|
Note that this causes errors on Apple platforms, so we exclude Apple from this.
|
||||||
|
*/
|
||||||
|
#ifndef __APPLE__
|
||||||
|
#ifndef _XOPEN_SOURCE
|
||||||
|
#define _XOPEN_SOURCE 700
|
||||||
|
#else
|
||||||
#if _XOPEN_SOURCE < 500
|
#if _XOPEN_SOURCE < 500
|
||||||
#error _XOPEN_SOURCE must be >= 500. fs is not usable.
|
#error _XOPEN_SOURCE must be >= 500. fs is not usable.
|
||||||
#endif
|
#endif
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
|
|||||||
Reference in New Issue
Block a user