/[mcrypt]/module-mars/lib/libdefs.h
ViewVC logotype

Contents of /module-mars/lib/libdefs.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations)
Sun Sep 16 18:53:48 2001 UTC (22 years, 6 months ago) by nmav
Branch: MAIN
CVS Tags: libmcrypt_2_4_16, HEAD
Changes since 1.2: +4 -1 lines
File MIME type: text/plain
updated for libmcrypt 2.4.16

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

webmaster@linux.gr
ViewVC Help
Powered by ViewVC 1.1.26