Procházet zdrojové kódy

Re-enabled the O_CLOEXEC definition so config headers can be fixed

Sam Lantinga před 3 roky
rodič
revize
c326ff7c6f
1 změnil soubory, kde provedl 2 přidání a 1 odebrání
  1. 2 1
      src/SDL_internal.h

+ 2 - 1
src/SDL_internal.h

@@ -51,7 +51,8 @@
 
 #include "SDL_config.h"
 
-#if !defined(O_CLOEXEC) && !defined(HAVE_O_CLOEXEC)
+/* If you run into a warning that O_CLOEXEC is redefined, update the SDL configuration header for your platform to add HAVE_O_CLOEXEC */
+#ifndef HAVE_O_CLOEXEC
 #define O_CLOEXEC                       0
 #endif