raylib/src
Peter0x44 31c6a340ab
Remove all uses of deps/mingw (#3805)
The purpose of this directory in GLFW is to provide some headers that
"mingw.org" doesn't. Raylib has long been unable to build with mingw.org
due to using certain symbols that aren't exposed in their headers.
(_ftelli64 and _access, among others.). Mingw-w64 already has the
necessary headers included, and doesn't need any of these external
implementations. For some reason, this also causes the following error
when building with Visual Studio's clang:

clang  -c rglfw.c -Wall -D_GNU_SOURCE -DPLATFORM_DESKTOP -DGRAPHICS_API_OPENGL_33 -Wno-missing-braces -Werror=pointer-arith -fno-strict-aliasing  -std=c99 -O1 -Werror=implicit-function-declaration -I. -Iexternal/glfw/include -Iexternal/glfw/deps/mingw
In file included from rglfw.c:61:
In file included from ./external/glfw/src/init.c:30:
In file included from ./external/glfw/src/internal.h:331:
In file included from ./external/glfw/src/platform.h:31:
In file included from ./external/glfw/src/win32_platform.h:70:
external/glfw/deps/mingw\xinput.h:227:26: error: a parameter list without types is only allowed in a function definition
  227 | void WINAPI XInputEnable(WINBOOL);
      |

If the last -Iexternal/glfw/deps/mingw is removed, the build works fine.

So, this workaround causes other problems, while not actually helping
raylib.

0bb605cd79/src/CMakeLists.txt (L272-L279)

GLFW's CMakeLists.txt first checks if either dinput.h or xinput.h are
provided by the toolchain, before telling the compiler to search for
headers in that directory. For EVERY compiler that can build raylib,
this is true.

In summary: This directory causes issues when building with some
compilers, and every toolchain that needs this workaround can't build
raylib anyway.
2024-02-22 23:06:22 +01:00
..
external Avoid asserts because could crash some decompressions https://github.com/raysan5/raygui/issues/364 2024-01-13 16:57:25 +01:00
platforms Add gamepad support to PLATFORM_DESKTOP_SDL (#3776) 2024-02-04 11:24:05 +01:00
build.zig Remove all uses of deps/mingw (#3805) 2024-02-22 23:06:22 +01:00
CMakeLists.txt Updating CMake version to 5.0 so libraries are correctly versioned (#3615) 2023-12-09 19:33:12 +01:00
config.h [rtext] Add BDF font support (#3735) 2024-02-03 19:28:12 +01:00
Makefile Remove all uses of deps/mingw (#3805) 2024-02-22 23:06:22 +01:00
minshell.html ADDED: Open-graph image alt properties 2023-11-07 19:22:12 +01:00
raudio.c Fix segfault in ExportWaveAsCode (#3769) 2024-02-01 21:16:57 +01:00
raylib.dll.rc REVIEWED: raylib 5.0-dev version for a future release 2023-10-18 00:33:05 +02:00
raylib.dll.rc.data REVIEWED: raylib 5.0-dev version for a future release 2023-10-18 00:33:05 +02:00
raylib.h Reorder functions 2024-02-04 12:02:58 +01:00
raylib.ico Updated icon data 2018-09-26 16:02:42 +02:00
raylib.rc REVIEWED: raylib 5.0-dev version for a future release 2023-10-18 00:33:05 +02:00
raylib.rc.data REVIEWED: raylib 5.0-dev version for a future release 2023-10-18 00:33:05 +02:00
raymath.h Fix implicit conversion from float to double then back to float again (#3799) 2024-02-17 10:41:03 +01:00
rcamera.h Fix GetCameraRight (#3784) 2024-02-05 20:53:14 +01:00
rcore.c Remove some unneeded line breaks 2024-02-18 11:59:40 +01:00
rgestures.h Update copyright to 2024 2024-01-02 20:58:12 +01:00
rglfw.c [rcore rglfw] Feature Test Macros before include (#3737) 2024-01-20 21:08:19 +01:00
rlgl.h Remove some unneeded line breaks 2024-02-18 11:59:40 +01:00
rmodels.c fixed loading GLTF animations with 1 frame (#3804) 2024-02-19 18:51:04 +01:00
rshapes.c Remove some unneeded line breaks 2024-02-18 11:59:40 +01:00
rtext.c Remove some unneeded line breaks 2024-02-18 11:59:40 +01:00
rtextures.c Remove some unneeded line breaks 2024-02-18 11:59:40 +01:00
shell.html Update shell.html 2023-11-08 19:34:38 +01:00
utils.c Update copyright to 2024 2024-01-02 20:58:12 +01:00
utils.h Update copyright to 2024 2024-01-02 20:58:12 +01:00