Parcourir la source

fixed build for cygwin (#2588)

pull/2589/head
Julianiolo il y a 2 ans
committed by GitHub
Parent
révision
6ed1ce0082
Aucune clé connue n'a été trouvée dans la base pour cette signature ID de la clé GPG: 4AEE18F83AFDEB23
2 fichiers modifiés avec 3 ajouts et 3 suppressions
  1. +1
    -1
      src/external/stb_vorbis.h
  2. +2
    -2
      src/rglfw.c

+ 1
- 1
src/external/stb_vorbis.h Voir le fichier

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

+ 2
- 2
src/rglfw.c Voir le fichier

@ -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"

Chargement…
Annuler
Enregistrer