// See raylib/src/rglfw.c //#define _GLFW_BUILD_DLL // To build shared version // Ref: http://www.glfw.org/docs/latest/compile.html#compile_manual // Platform options: // _GLFW_WIN32 to use the Win32 API // _GLFW_X11 to use the X Window System // _GLFW_WAYLAND to use the Wayland API (experimental and incomplete) // _GLFW_COCOA to use the Cocoa frameworks // _GLFW_OSMESA to use the OSMesa API (headless and non-interactive) // _GLFW_MIR experimental, not supported at this moment #if defined(_WIN32) || defined(__CYGWIN__) #define _GLFW_WIN32 #endif #if defined(__linux__) #if !defined(_GLFW_WAYLAND) // Required for Wayland windowing #define _GLFW_X11 #endif #endif #if defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__NetBSD__) || defined(__DragonFly__) #define _GLFW_X11 #endif #if defined(__APPLE__) #define _GLFW_COCOA #define _GLFW_USE_MENUBAR // To create and populate the menu bar when the first window is created #define _GLFW_USE_RETINA // To have windows use the full resolution of Retina displays #endif #if defined(__TINYC__) #define _WIN32_WINNT_WINXP 0x0501 #endif // Common modules to all platforms #include #include #include #include #include #include #include #if defined(_WIN32) || defined(__CYGWIN__) #include "win32_init_patch.c" #include #include #include #include "win32_joystick_patch.c" #include #include #include #include #include #endif #if defined(__linux__) #include #include #include #include #include #include #include #include #if defined(_GLFW_WAYLAND) #include #include #include #endif #if defined(_GLFW_X11) #include #include #include #include #endif #endif #if defined(__FreeBSD__) || defined(__OpenBSD__) || defined( __NetBSD__) || defined(__DragonFly__) #include #include #include #include "external/glfw/src/posix_poll.c" #include #include #include #include #include #include #include #include #endif #if defined(__APPLE__) #include #include #include #include #include #include #include #include #include #include #endif