Fixed build warning on iOS

This commit is contained in:
Sam Lantinga 2021-12-14 12:08:36 -08:00
parent b08e57e926
commit 086c74556d
2 changed files with 2 additions and 1 deletions

View File

@ -134,6 +134,7 @@
#define HAVE_NANOSLEEP 1
#define HAVE_SYSCONF 1
#define HAVE_SYSCTLBYNAME 1
#define HAVE_O_CLOEXEC 1
/* enable iPhone version of Core Audio driver */
#define SDL_AUDIO_DRIVER_COREAUDIO 1

View File

@ -51,7 +51,7 @@
#include "SDL_config.h"
#ifndef HAVE_O_CLOEXEC
#if !defined(O_CLOEXEC) && !defined(HAVE_O_CLOEXEC)
#define O_CLOEXEC 0
#endif