ferdnyc / rpms / chmlib

Forked from rpms/chmlib 4 years ago
Clone
50c4937
--- src/chm_lib.c	2007-08-05 09:03:27.000000000 +0400
50c4937
+++ src/chm_lib.c	2007-08-05 09:07:04.000000000 +0400
50c4937
@@ -148,35 +148,15 @@
50c4937
 typedef unsigned __int32        UInt32;
50c4937
 typedef __int64                 Int64;
50c4937
 typedef unsigned __int64        UInt64;
50c4937
-
50c4937
-/* I386, 32-bit, non-Windows */
50c4937
-/* Sparc        */
50c4937
-/* MIPS         */
50c4937
-/* PPC          */
50c4937
-#elif __i386__ || __sun || __sgi || __ppc__
50c4937
-typedef unsigned char           UChar;
50c4937
-typedef short                   Int16;
50c4937
-typedef unsigned short          UInt16;
50c4937
-typedef long                    Int32;
50c4937
-typedef unsigned long           UInt32;
50c4937
-typedef long long               Int64;
50c4937
-typedef unsigned long long      UInt64;
50c4937
-
50c4937
-/* x86-64 */
50c4937
-/* Note that these may be appropriate for other 64-bit machines. */
50c4937
-#elif __x86_64__ || __ia64__
50c4937
-typedef unsigned char           UChar;
50c4937
-typedef short                   Int16;
50c4937
-typedef unsigned short          UInt16;
50c4937
-typedef int                     Int32;
50c4937
-typedef unsigned int            UInt32;
50c4937
-typedef long                    Int64;
50c4937
-typedef unsigned long           UInt64;
50c4937
-
50c4937
 #else
50c4937
-
50c4937
-/* yielding an error is preferable to yielding incorrect behavior */
50c4937
-#error "Please define the sized types for your platform in chm_lib.c"
50c4937
+#include <stdint.h>
50c4937
+typedef uint8_t UChar;
50c4937
+typedef int16_t Int16;
50c4937
+typedef uint16_t UInt16;
50c4937
+typedef int32_t Int32;
50c4937
+typedef uint32_t UInt32;
50c4937
+typedef int64_t Int64;
50c4937
+typedef uint64_t UInt64;
50c4937
 #endif
50c4937
 
50c4937
 /* GCC */