1 |
/* MAX_THREADS removed by Steve Underwood 1999/12/10 */ |
2 |
|
3 |
#ifdef HAVE_CONFIG_H |
4 |
# include <config.h> |
5 |
#endif |
6 |
|
7 |
#ifdef STDC_HEADERS |
8 |
# include <string.h> |
9 |
# include <stdlib.h> |
10 |
# include <stdio.h> |
11 |
#endif |
12 |
|
13 |
#ifdef HAVE_DIRENT_H |
14 |
# include <dirent.h> |
15 |
#endif |
16 |
|
17 |
#ifdef HAVE_STRINGS_H |
18 |
# include <strings.h> |
19 |
#endif |
20 |
|
21 |
#ifdef HAVE_UNISTD_H |
22 |
# include <unistd.h> |
23 |
#endif |
24 |
|
25 |
#ifdef HAVE_LIBPTHREAD |
26 |
# include <pthread.h> |
27 |
#endif |
28 |
|
29 |
#if SIZEOF_UNSIGNED_LONG_INT == 4 |
30 |
typedef unsigned long word32; |
31 |
typedef signed long sword32; |
32 |
#elif SIZEOF_UNSIGNED_INT == 4 |
33 |
typedef unsigned int word32; |
34 |
typedef signed int sword32; |
35 |
#else |
36 |
# error "Cannot find a 32 bit integer in your system, sorry." |
37 |
#endif |
38 |
|
39 |
#if SIZEOF_UNSIGNED_INT == 2 |
40 |
typedef unsigned int word16; |
41 |
#elif SIZEOF_UNSIGNED_SHORT_INT == 2 |
42 |
typedef unsigned short word16; |
43 |
#else |
44 |
# error "Cannot find a 16 bit integer in your system, sorry." |
45 |
#endif |
46 |
|
47 |
#if SIZEOF_UNSIGNED_CHAR == 1 |
48 |
typedef unsigned char word8; |
49 |
#else |
50 |
# error "Cannot find an 8 bit char in your system, sorry." |
51 |
#endif |
52 |
|
53 |
#ifndef HAVE_MEMMOVE |
54 |
# ifdef HAVE_BCOPY |
55 |
# define memmove(d, s, n) bcopy ((s), (d), (n)) |
56 |
# else |
57 |
# error "Neither memmove nor bcopy exists on your system." |
58 |
# endif |
59 |
#endif |
60 |
|