diff options
| author | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
|---|---|---|
| committer | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
| commit | 54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch) | |
| tree | d915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/chmlib/all-platforms.patch | |
Diffstat (limited to 'vcpkg/ports/chmlib/all-platforms.patch')
| -rw-r--r-- | vcpkg/ports/chmlib/all-platforms.patch | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/vcpkg/ports/chmlib/all-platforms.patch b/vcpkg/ports/chmlib/all-platforms.patch new file mode 100644 index 0000000..62dca58 --- /dev/null +++ b/vcpkg/ports/chmlib/all-platforms.patch @@ -0,0 +1,20 @@ +diff --git a/src/chm_lib.c b/src/chm_lib.c +index 6c6736c..d532691 100644 +--- a/src/chm_lib.c ++++ b/src/chm_lib.c +@@ -175,8 +175,13 @@ typedef unsigned long UInt64; + + #else + +-/* yielding an error is preferable to yielding incorrect behavior */ +-#error "Please define the sized types for your platform in chm_lib.c" ++typedef unsigned char UChar; ++typedef int16_t Int16; ++typedef uint16_t UInt16; ++typedef int32_t Int32; ++typedef uint32_t UInt32; ++typedef int64_t Int64; ++typedef uint64_t UInt64; + #endif + + /* GCC */ |