File chmlib-0.39.diff of Package chmlib

--- src/chm_lib.c
+++ src/chm_lib.c
@@ -182,8 +182,15 @@
 
 #else
 
-/* yielding an error is preferable to yielding incorrect behavior */
-#error "Please define the sized types for your platform in chm_lib.c"
+#include <stdint.h>
+typedef uint8_t 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 */
openSUSE Build Service is sponsored by