summaryrefslogtreecommitdiffhomepage
path: root/src/external
diff options
context:
space:
mode:
authorRay <[email protected]>2022-08-28 15:48:12 +0200
committerRay <[email protected]>2022-08-28 15:48:12 +0200
commit7f5567eec0f996fd849876c74508aa63b3c2e3fc (patch)
tree269456dbe6e6695028f9820d23ec5955c41bb7ee /src/external
parentbe2328f848d96a788f9f40f1ed302c64335d47df (diff)
downloadraylib-7f5567eec0f996fd849876c74508aa63b3c2e3fc.tar.gz
raylib-7f5567eec0f996fd849876c74508aa63b3c2e3fc.zip
Reviewed GLFW compilation requirements on Linux: `_GNU_SOURCE`
Reasons to NOT define `_GNU_SOURCE`: - access to lots of nonstandard GNU/Linux extension functions - access to traditional functions which were omitted from the POSIX standard (often for good reason, such as being replaced with better alternatives, or being tied to particular legacy implementations) - access to low-level functions that cannot be portable, but that you sometimes need for implementing system utilities like mount, ifconfig, etc. - broken behavior for lots of POSIX-specified functions, where the GNU folks disagreed with the standards committee on how the functions should behave and decided to do their own thing.
Diffstat (limited to 'src/external')
-rw-r--r--src/external/glfw/src/posix_poll.c1
-rw-r--r--src/external/glfw/src/posix_poll.h1
2 files changed, 0 insertions, 2 deletions
diff --git a/src/external/glfw/src/posix_poll.c b/src/external/glfw/src/posix_poll.c
index d309292e..676a8a51 100644
--- a/src/external/glfw/src/posix_poll.c
+++ b/src/external/glfw/src/posix_poll.c
@@ -29,7 +29,6 @@
#define _GNU_SOURCE
#include "internal.h"
-#include "posix_poll.h" // @raysan5: Required for poll(), ppoll()
#include <signal.h>
#include <time.h>
diff --git a/src/external/glfw/src/posix_poll.h b/src/external/glfw/src/posix_poll.h
index 860f108d..1effd1cd 100644
--- a/src/external/glfw/src/posix_poll.h
+++ b/src/external/glfw/src/posix_poll.h
@@ -26,7 +26,6 @@
// 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>
GLFWbool _glfwPollPOSIX(struct pollfd* fds, nfds_t count, double* timeout);