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:
Rémi Verschelde 2025-05-07 23:21:51 +02:00
parent 0793c626d2
commit 9419ef2f34
No known key found for this signature in database
GPG Key ID: C3336907360768E1
3 changed files with 17 additions and 0 deletions

View File

@ -89,6 +89,8 @@ Patches:
- `0002-external-tinyexr.patch` (GH-97582)
- `0003-remove-tinydds-qoi.patch` (GH-97582)
- `0004-ambiguous-calls.patch` (GH-103968)
- `0005-msvc-include-ctype.patch` (GH-106155)
## brotli

View 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

View File

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