You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-04 12:00:25 +00:00
basis_universal: Add missing ctype.h include to fix MSVC build
Seems like latest MSVC tweaked some headers and we no longer have definitions for `isdigit` and `isalpha` without an explicit include.
This commit is contained in:
2
thirdparty/README.md
vendored
2
thirdparty/README.md
vendored
@@ -89,6 +89,8 @@ Patches:
|
|||||||
- `0002-external-tinyexr.patch` (GH-97582)
|
- `0002-external-tinyexr.patch` (GH-97582)
|
||||||
- `0003-remove-tinydds-qoi.patch` (GH-97582)
|
- `0003-remove-tinydds-qoi.patch` (GH-97582)
|
||||||
- `0004-ambiguous-calls.patch` (GH-103968)
|
- `0004-ambiguous-calls.patch` (GH-103968)
|
||||||
|
- `0005-msvc-include-ctype.patch` (GH-106155)
|
||||||
|
|
||||||
|
|
||||||
## brotli
|
## brotli
|
||||||
|
|
||||||
|
|||||||
13
thirdparty/basis_universal/patches/0005-msvc-include-ctype.patch
vendored
Normal file
13
thirdparty/basis_universal/patches/0005-msvc-include-ctype.patch
vendored
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
diff --git a/thirdparty/basis_universal/transcoder/basisu_containers_impl.h b/thirdparty/basis_universal/transcoder/basisu_containers_impl.h
|
||||||
|
index d4d3eb23bc..3d7aaddcad 100644
|
||||||
|
--- a/thirdparty/basis_universal/transcoder/basisu_containers_impl.h
|
||||||
|
+++ b/thirdparty/basis_universal/transcoder/basisu_containers_impl.h
|
||||||
|
@@ -1,6 +1,8 @@
|
||||||
|
// basisu_containers_impl.h
|
||||||
|
// Do not include directly
|
||||||
|
|
||||||
|
+#include <ctype.h>
|
||||||
|
+
|
||||||
|
#ifdef _MSC_VER
|
||||||
|
#pragma warning (disable:4127) // warning C4127: conditional expression is constant
|
||||||
|
#endif
|
||||||
@@ -1,6 +1,8 @@
|
|||||||
// basisu_containers_impl.h
|
// basisu_containers_impl.h
|
||||||
// Do not include directly
|
// Do not include directly
|
||||||
|
|
||||||
|
#include <ctype.h>
|
||||||
|
|
||||||
#ifdef _MSC_VER
|
#ifdef _MSC_VER
|
||||||
#pragma warning (disable:4127) // warning C4127: conditional expression is constant
|
#pragma warning (disable:4127) // warning C4127: conditional expression is constant
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user