Skip to content

Commit 9419ef2

Browse files
committed
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.
1 parent 0793c62 commit 9419ef2

File tree

3 files changed

+17
-0
lines changed

3 files changed

+17
-0
lines changed

thirdparty/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,8 @@ Patches:
8989
- `0002-external-tinyexr.patch` (GH-97582)
9090
- `0003-remove-tinydds-qoi.patch` (GH-97582)
9191
- `0004-ambiguous-calls.patch` (GH-103968)
92+
- `0005-msvc-include-ctype.patch` (GH-106155)
93+
9294

9395
## brotli
9496

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
diff --git a/thirdparty/basis_universal/transcoder/basisu_containers_impl.h b/thirdparty/basis_universal/transcoder/basisu_containers_impl.h
2+
index d4d3eb23bc..3d7aaddcad 100644
3+
--- a/thirdparty/basis_universal/transcoder/basisu_containers_impl.h
4+
+++ b/thirdparty/basis_universal/transcoder/basisu_containers_impl.h
5+
@@ -1,6 +1,8 @@
6+
// basisu_containers_impl.h
7+
// Do not include directly
8+
9+
+#include <ctype.h>
10+
+
11+
#ifdef _MSC_VER
12+
#pragma warning (disable:4127) // warning C4127: conditional expression is constant
13+
#endif

thirdparty/basis_universal/transcoder/basisu_containers_impl.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
// basisu_containers_impl.h
22
// Do not include directly
33

4+
#include <ctype.h>
5+
46
#ifdef _MSC_VER
57
#pragma warning (disable:4127) // warning C4127: conditional expression is constant
68
#endif

0 commit comments

Comments
 (0)