Parcourir la source

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

Sam Lantinga il y a 3 ans
Parent
commit
c326ff7c6f
1 fichiers modifiés avec 2 ajouts et 1 suppressions
  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