1 |
#ifndef ILIBDEFS_H |
2 |
# define ILIBDEFS_H |
3 |
|
4 |
/* MAX_THREADS removed by Steve Underwood 1999/12/10 */ |
5 |
|
6 |
#ifdef HAVE_CONFIG_H |
7 |
# include <config.h> |
8 |
#endif |
9 |
|
10 |
|
11 |
#ifdef HAVE_SYS_TYPES_H |
12 |
# include <sys/types.h> |
13 |
#endif |
14 |
|
15 |
#include "win32_comp.h" |
16 |
|
17 |
#ifdef USE_LTDL |
18 |
# include <ltdl.h> |
19 |
#else |
20 |
# define lt_dlexit() 0 |
21 |
# define lt_dlinit() 0 |
22 |
# define lt_dlclose(x) 0 |
23 |
# define lt_dlsym(x,y) 0 |
24 |
# define lt_dlhandle void* |
25 |
# define lt_ptr_t void* |
26 |
# define lt_dlerror() 0 |
27 |
# define lt_dlopenext(x) 0 |
28 |
# define lt_dlsetsearchpath(x) 0 |
29 |
#endif |
30 |
|
31 |
#ifdef STDC_HEADERS |
32 |
# include <stdlib.h> |
33 |
# include <stdio.h> |
34 |
# include <ctype.h> |
35 |
# include <string.h> |
36 |
#endif |
37 |
|
38 |
#ifdef HAVE_STRINGS_H |
39 |
# include <strings.h> |
40 |
#endif |
41 |
|
42 |
#ifdef HAVE_UNISTD_H |
43 |
# include <unistd.h> |
44 |
#endif |
45 |
|
46 |
#ifdef HAVE_SYS_ENDIAN_H |
47 |
# include <sys/endian.h> |
48 |
#endif |
49 |
|
50 |
#ifdef HAVE_MACHINE_ENDIAN_H |
51 |
# include <machine/endian.h> |
52 |
#endif |
53 |
|
54 |
#ifdef HAVE_ENDIAN_H |
55 |
# include <endian.h> |
56 |
#endif |
57 |
|
58 |
#ifdef HAVE_BYTESWAP_H |
59 |
# include <byteswap.h> |
60 |
#endif |
61 |
|
62 |
|
63 |
#ifdef HAVE_READDIR_R |
64 |
# define _POSIX_C_SOURCE 199506L |
65 |
#endif |
66 |
|
67 |
#ifdef HAVE_DIRENT_H |
68 |
# include <dirent.h> |
69 |
#endif |
70 |
|
71 |
#if SIZEOF_UNSIGNED_LONG_INT == 4 |
72 |
typedef unsigned long word32; |
73 |
typedef signed long sword32; |
74 |
#elif SIZEOF_UNSIGNED_INT == 4 |
75 |
typedef unsigned int word32; |
76 |
typedef signed int sword32; |
77 |
#else |
78 |
# error "Cannot find a 32 bit integer in your system, sorry." |
79 |
#endif |
80 |
|
81 |
#if SIZEOF_UNSIGNED_INT == 2 |
82 |
typedef unsigned int word16; |
83 |
#elif SIZEOF_UNSIGNED_SHORT_INT == 2 |
84 |
typedef unsigned short word16; |
85 |
#else |
86 |
# error "Cannot find a 16 bit integer in your system, sorry." |
87 |
#endif |
88 |
|
89 |
#if SIZEOF_UNSIGNED_CHAR == 1 |
90 |
typedef unsigned char byte; |
91 |
#else |
92 |
# error "Cannot find an 8 bit char in your system, sorry." |
93 |
#endif |
94 |
|
95 |
#ifndef HAVE_MEMMOVE |
96 |
# ifdef HAVE_BCOPY |
97 |
# define memmove(d, s, n) bcopy ((s), (d), (n)) |
98 |
# else |
99 |
# error "Neither memmove nor bcopy exists on your system." |
100 |
# endif |
101 |
#endif |
102 |
|
103 |
#ifdef USE_DMALLOC |
104 |
# include <dmalloc.h> |
105 |
#endif |
106 |
|
107 |
#endif /* LIBDEFS_H */ |
108 |
|