From 6ed1ce0082471c803127406808f2661d2d1d0ee9 Mon Sep 17 00:00:00 2001 From: Julianiolo <50519317+Julianiolo@users.noreply.github.com> Date: Sat, 23 Jul 2022 12:33:23 +0200 Subject: [PATCH] fixed build for cygwin (#2588) --- src/external/stb_vorbis.h | 2 +- src/rglfw.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/external/stb_vorbis.h b/src/external/stb_vorbis.h index c9ee5cccc..2fcbc4afc 100644 --- a/src/external/stb_vorbis.h +++ b/src/external/stb_vorbis.h @@ -570,7 +570,7 @@ enum STBVorbisError #if defined(_MSC_VER) || defined(__MINGW32__) #include #endif - #if defined(__linux__) || defined(__linux) || defined(__EMSCRIPTEN__) || defined(__APPLE__) + #if defined(__linux__) || defined(__linux) || defined(__EMSCRIPTEN__) || defined(__APPLE__) || defined(__CYGWIN__) #include #endif #else // STB_VORBIS_NO_CRT diff --git a/src/rglfw.c b/src/rglfw.c index 393dfe1fc..cbb19ad71 100644 --- a/src/rglfw.c +++ b/src/rglfw.c @@ -37,7 +37,7 @@ // _GLFW_OSMESA to use the OSMesa API (headless and non-interactive) // _GLFW_MIR experimental, not supported at this moment -#if defined(_WIN32) +#if defined(_WIN32) || defined(__CYGWIN__) #define _GLFW_WIN32 #endif #if defined(__linux__) @@ -65,7 +65,7 @@ #include "external/glfw/src/vulkan.c" #include "external/glfw/src/window.c" -#if defined(_WIN32) +#if defined(_WIN32) || defined(__CYGWIN__) #include "external/glfw/src/win32_init.c" #include "external/glfw/src/win32_joystick.c" #include "external/glfw/src/win32_monitor.c"