Add conditional compilation for platform units

This is a step towards being able to compile GLFW manually without
needing to duplicate a lot of platform- or OS-specific logic.
This commit is contained in:
Camilla Löwy
2021-11-09 19:44:00 +01:00
parent 8a72918bcd
commit c812b9d87c
34 changed files with 167 additions and 25 deletions
+4
View File
@@ -29,6 +29,8 @@
#include "internal.h"
#if defined(GLFW_BUILD_LINUX_JOYSTICK)
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/inotify.h>
@@ -429,3 +431,5 @@ void _glfwUpdateGamepadGUIDLinux(char* guid)
{
}
#endif // GLFW_BUILD_LINUX_JOYSTICK