소스 검색

Reviewed GLFW issue with `ppoll()` function

Ray 3 년 전
부모
커밋
568fe42cb1
3개의 변경된 파일3개의 추가작업 그리고 2개의 파일을 삭제
  1. 1 1
      src/Makefile
  2. 1 1
      src/external/glfw/src/posix_poll.c
  3. 1 0
      src/external/glfw/src/posix_poll.h

+ 1 - 1
src/Makefile

@@ -348,7 +348,7 @@ endif
 #  -Wstrict-prototypes      warn if a function is declared or defined without specifying the argument types
 #  -Wstrict-prototypes      warn if a function is declared or defined without specifying the argument types
 #  -Werror=implicit-function-declaration   catch function calls without prior declaration
 #  -Werror=implicit-function-declaration   catch function calls without prior declaration
 ifeq ($(PLATFORM),PLATFORM_DESKTOP)
 ifeq ($(PLATFORM),PLATFORM_DESKTOP)
-    #CFLAGS += -Werror=implicit-function-declaration
+    CFLAGS += -Werror=implicit-function-declaration
 endif
 endif
 ifeq ($(PLATFORM),PLATFORM_WEB)
 ifeq ($(PLATFORM),PLATFORM_WEB)
     # -Os                        # size optimization
     # -Os                        # size optimization

+ 1 - 1
src/external/glfw/src/posix_poll.c

@@ -29,7 +29,7 @@
 #define _GNU_SOURCE
 #define _GNU_SOURCE
 
 
 #include "internal.h"
 #include "internal.h"
-#include "posix_poll.h"
+#include "posix_poll.h"     // @raysan5: Required for poll(), ppoll()
 
 
 #include <signal.h>
 #include <signal.h>
 #include <time.h>
 #include <time.h>

+ 1 - 0
src/external/glfw/src/posix_poll.h

@@ -26,6 +26,7 @@
 // It is fine to use C99 in this file because it will not be built with VS
 // It is fine to use C99 in this file because it will not be built with VS
 //========================================================================
 //========================================================================
 
 
+#define _GNU_SOURCE     // @raysan5: Required for ppoll()
 #include <poll.h>
 #include <poll.h>
 
 
 GLFWbool _glfwPollPOSIX(struct pollfd* fds, nfds_t count, double* timeout);
 GLFWbool _glfwPollPOSIX(struct pollfd* fds, nfds_t count, double* timeout);