فهرست منبع

Fixed build warning on iOS

Sam Lantinga 3 سال پیش
والد
کامیت
086c74556d
2فایلهای تغییر یافته به همراه2 افزوده شده و 1 حذف شده
  1. 1 0
      include/SDL_config_iphoneos.h
  2. 1 1
      src/SDL_internal.h

+ 1 - 0
include/SDL_config_iphoneos.h

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

+ 1 - 1
src/SDL_internal.h

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