patches/giflib-04-u_int.diff
author jurikm
Sun, 12 Feb 2012 14:04:10 +0000
changeset 8245 383896da4129
parent 458 8ffcaf7be051
permissions -rw-r--r--
SFEsauerbraten.spec: add IPS package name
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
458
8ffcaf7be051 2007-09-08 Doug Scott <[email protected]>
drdoug007
parents:
diff changeset
     1
--- giflib-4.1.4/lib/gif_hash.h.orig	2007-09-06 11:28:07.104671651 +0700
8ffcaf7be051 2007-09-08 Doug Scott <[email protected]>
drdoug007
parents:
diff changeset
     2
+++ giflib-4.1.4/lib/gif_hash.h	2007-09-06 11:28:50.701498713 +0700
8ffcaf7be051 2007-09-08 Doug Scott <[email protected]>
drdoug007
parents:
diff changeset
     3
@@ -24,6 +24,15 @@
8ffcaf7be051 2007-09-08 Doug Scott <[email protected]>
drdoug007
parents:
diff changeset
     4
 #ifdef HAVE_BASETSD_H
8ffcaf7be051 2007-09-08 Doug Scott <[email protected]>
drdoug007
parents:
diff changeset
     5
 #include <basetsd.h>
8ffcaf7be051 2007-09-08 Doug Scott <[email protected]>
drdoug007
parents:
diff changeset
     6
 #endif
8ffcaf7be051 2007-09-08 Doug Scott <[email protected]>
drdoug007
parents:
diff changeset
     7
+#ifdef HAVE_INTTYPES_H
8ffcaf7be051 2007-09-08 Doug Scott <[email protected]>
drdoug007
parents:
diff changeset
     8
+#include <inttypes.h>
8ffcaf7be051 2007-09-08 Doug Scott <[email protected]>
drdoug007
parents:
diff changeset
     9
+#endif
8ffcaf7be051 2007-09-08 Doug Scott <[email protected]>
drdoug007
parents:
diff changeset
    10
+#ifndef HAVE_U_INT_TYPES
8ffcaf7be051 2007-09-08 Doug Scott <[email protected]>
drdoug007
parents:
diff changeset
    11
+typedef uint8_t u_int8_t;
8ffcaf7be051 2007-09-08 Doug Scott <[email protected]>
drdoug007
parents:
diff changeset
    12
+typedef uint16_t u_int16_t;
8ffcaf7be051 2007-09-08 Doug Scott <[email protected]>
drdoug007
parents:
diff changeset
    13
+typedef uint32_t u_int32_t;
8ffcaf7be051 2007-09-08 Doug Scott <[email protected]>
drdoug007
parents:
diff changeset
    14
+typedef uint64_t u_int64_t;
8ffcaf7be051 2007-09-08 Doug Scott <[email protected]>
drdoug007
parents:
diff changeset
    15
+#endif
8ffcaf7be051 2007-09-08 Doug Scott <[email protected]>
drdoug007
parents:
diff changeset
    16
 
8ffcaf7be051 2007-09-08 Doug Scott <[email protected]>
drdoug007
parents:
diff changeset
    17
 #define HT_SIZE			8192	   /* 12bits = 4096 or twice as big! */
8ffcaf7be051 2007-09-08 Doug Scott <[email protected]>
drdoug007
parents:
diff changeset
    18
 #define HT_KEY_MASK		0x1FFF			      /* 13bits keys */