diff options
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 */ |