소스 검색

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

Sam Lantinga 3 년 전
부모
커밋
c326ff7c6f
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  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