fixed build for cygwin (#2588)

This commit is contained in:
Julianiolo
2022-07-23 12:33:23 +02:00
committed by GitHub
parent 0abba4dc18
commit 6ed1ce0082
2 changed files with 3 additions and 3 deletions

View File

@@ -570,7 +570,7 @@ enum STBVorbisError
#if defined(_MSC_VER) || defined(__MINGW32__) #if defined(_MSC_VER) || defined(__MINGW32__)
#include <malloc.h> #include <malloc.h>
#endif #endif
#if defined(__linux__) || defined(__linux) || defined(__EMSCRIPTEN__) || defined(__APPLE__) #if defined(__linux__) || defined(__linux) || defined(__EMSCRIPTEN__) || defined(__APPLE__) || defined(__CYGWIN__)
#include <alloca.h> #include <alloca.h>
#endif #endif
#else // STB_VORBIS_NO_CRT #else // STB_VORBIS_NO_CRT

View File

@@ -37,7 +37,7 @@
// _GLFW_OSMESA to use the OSMesa API (headless and non-interactive) // _GLFW_OSMESA to use the OSMesa API (headless and non-interactive)
// _GLFW_MIR experimental, not supported at this moment // _GLFW_MIR experimental, not supported at this moment
#if defined(_WIN32) #if defined(_WIN32) || defined(__CYGWIN__)
#define _GLFW_WIN32 #define _GLFW_WIN32
#endif #endif
#if defined(__linux__) #if defined(__linux__)
@@ -65,7 +65,7 @@
#include "external/glfw/src/vulkan.c" #include "external/glfw/src/vulkan.c"
#include "external/glfw/src/window.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_init.c"
#include "external/glfw/src/win32_joystick.c" #include "external/glfw/src/win32_joystick.c"
#include "external/glfw/src/win32_monitor.c" #include "external/glfw/src/win32_monitor.c"