-
Notifications
You must be signed in to change notification settings - Fork 6.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5f14417
commit 6046f2e
Showing
5 changed files
with
45 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,14 @@ | ||
{ | ||
"name": "chmlib", | ||
"version-string": "0.40", | ||
"port-version": 5, | ||
"version": "0.40", | ||
"port-version": 6, | ||
"description": "CHMLIB is a library for dealing with Microsoft ITSS/CHM format files. Right now, it is a very simple library, but sufficient for dealing with all of the .chm files I've come across. Due to the fairly well-designed indexing built into this particular file format, even a small library is able to gain reasonably good performance indexing into ITSS archives.", | ||
"homepage": "https://www.jedrea.com/chmlib/" | ||
"homepage": "http://www.jedrea.com/chmlib/", | ||
"license": "LGPL-2.1-or-later", | ||
"dependencies": [ | ||
{ | ||
"name": "vcpkg-cmake", | ||
"host": true | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters