Explorar el Código

make glfw use absolute paths so no include paths have to be supplied

pull/5492/head
keks137 hace 2 semanas
padre
commit
10cfcd9f3c
Se han modificado 2 ficheros con 5 adiciones y 5 borrados
  1. +4
    -4
      src/platforms/rcore_desktop_glfw.c
  2. +1
    -1
      src/platforms/rcore_web.c

+ 4
- 4
src/platforms/rcore_desktop_glfw.c Ver fichero

@ -48,7 +48,7 @@
#define GLFW_INCLUDE_NONE // Disable the standard OpenGL header inclusion on GLFW3
// NOTE: Already provided by rlgl implementation (on glad.h)
#include "GLFW/glfw3.h" // GLFW3 library: Windows, OpenGL context and Input management
#include "../external/glfw/include/GLFW/glfw3.h" // GLFW3 library: Windows, OpenGL context and Input management
// NOTE: GLFW3 already includes gl.h (OpenGL) headers
// Support retrieving native window handlers
@ -63,7 +63,7 @@
#define GLFW_EXPOSE_NATIVE_WIN32
#define GLFW_NATIVE_INCLUDE_NONE // To avoid some symbols re-definition in windows.h
#include "GLFW/glfw3native.h"
#include "../external/glfw/include/GLFW/glfw3native.h"
#if defined(SUPPORT_WINMM_HIGHRES_TIMER) && !defined(SUPPORT_BUSY_WAIT_LOOP)
// NOTE: Those functions require linking with winmm library
@ -89,7 +89,7 @@
#define GLFW_EXPOSE_NATIVE_WAYLAND
#endif
#include "GLFW/glfw3native.h" // Include native header only once, regardless of how many backends are defined
#include "../external/glfw/include/GLFW/glfw3native.h" // Include native header only once, regardless of how many backends are defined
// Required for: glfwGetX11Window() and glfwGetWaylandWindow()
#if defined(_GLFW_X11) // Clean up X11-specific hacks
#undef Font // Revert hack and allow normal raylib Font usage
@ -101,7 +101,7 @@
//#define GLFW_EXPOSE_NATIVE_COCOA // WARNING: Fails due to type redefinition
void *glfwGetCocoaWindow(GLFWwindow* handle);
#include "GLFW/glfw3native.h" // Required for: glfwGetCocoaWindow()
#include "../external/glfw/include/GLFW/glfw3native.h" // Required for: glfwGetCocoaWindow()
#endif
#include <stddef.h> // Required for: size_t

+ 1
- 1
src/platforms/rcore_web.c Ver fichero

@ -44,7 +44,7 @@
#define GLFW_INCLUDE_NONE // Disable the standard OpenGL header inclusion on GLFW3
// NOTE: Already provided by rlgl implementation (on glad.h)
#include "GLFW/glfw3.h" // GLFW3: Windows, OpenGL context and Input management
#include "../external/glfw/include/GLFW/glfw3.h" // GLFW3: Windows, OpenGL context and Input management
#include <emscripten/emscripten.h> // Emscripten functionality for C
#include <emscripten/html5.h> // Emscripten HTML5 library

Cargando…
Cancelar
Guardar