blob: 65017a19e7431c9c9baf75eb436ad292783de637 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
|
$NetBSD: patch-ad,v 1.6 2005/06/14 18:10:37 jlam Exp $
--- lib/XpmI.h.orig 1998-03-19 14:51:00.000000000 -0500
+++ lib/XpmI.h
@@ -42,14 +42,17 @@
#ifndef XPMI_h
#define XPMI_h
+#include <X11/Xmd.h>
#include "xpm.h"
/*
* lets try to solve include files
*/
+#include <sys/types.h>
#include <stdio.h>
#include <stdlib.h>
+#include <limits.h>
/* stdio.h doesn't declare popen on a Sequent DYNIX OS */
#ifdef sequent
extern FILE *popen();
@@ -114,6 +117,18 @@ extern FILE *popen();
boundCheckingCalloc((long)(nelem),(long) (elsize))
#endif
+#if defined(SCO) || defined(__USLC__)
+#include <stdint.h> /* For SIZE_MAX */
+#endif
+#include <limits.h>
+#ifndef SIZE_MAX
+# ifdef ULONG_MAX
+# define SIZE_MAX ULONG_MAX
+# else
+# define SIZE_MAX UINT_MAX
+# endif
+#endif
+
#define XPMMAXCMTLEN BUFSIZ
typedef struct {
unsigned int type;
@@ -215,9 +230,9 @@ typedef struct _xpmHashAtom {
} *xpmHashAtom;
typedef struct {
- int size;
- int limit;
- int used;
+ unsigned int size;
+ unsigned int limit;
+ unsigned int used;
xpmHashAtom *atomTable;
} xpmHashTable;
|