1
0
mirror of https://github.com/TASVideos/desmume synced 2024-07-03 00:08:51 +00:00

libretro: Fix building on Mach-based operating systems, otherwise known as Mac OS X and modern macOS (regression from commit 90d0abd). Based on PR #793.

This commit is contained in:
rogerman 2024-06-07 16:33:13 -07:00
parent ffb8666a8f
commit 779606ec2f

View File

@ -20,8 +20,6 @@
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
#define _XOPEN_SOURCE 500 /* For strdup, realpath */
#include <stdlib.h>
#include <boolean.h>
#include <string.h>
@ -33,6 +31,7 @@
#include <file/file_path.h>
#ifndef __MACH__
#define _XOPEN_SOURCE 500 /* For strdup, realpath */
#include <compat/strl.h>
#include <compat/posix_string.h>
#endif