pkgsrc/devel/chmlib/patches/patch-aa
jlam e22649af2a Use types defined by <sys/types.h> to define some chmlib fixed-width
integer types.  This allows this to build on amd64, although it now
warns of passing around pointers of incompatible type.
2004-12-19 04:53:08 +00:00

21 lines
729 B
Text

$NetBSD: patch-aa,v 1.4 2004/12/19 04:53:08 jlam Exp $
--- src/chm_lib.c.orig 2004-06-28 20:42:38.000000000 -0400
+++ src/chm_lib.c
@@ -169,9 +169,13 @@ typedef unsigned long UInt32;
typedef long long Int64;
typedef unsigned long 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 u_int16_t UInt16;
+typedef int32_t Int32;
+typedef u_int32_t UInt32;
+typedef int64_t Int64;
+typedef u_int64_t UInt64;
#endif
/* GCC */