/[mcrypt]/libmcrypt/lib/libdefs.h
ViewVC logotype

Annotation of /libmcrypt/lib/libdefs.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.14 - (hide annotations)
Sun Sep 2 20:11:45 2001 UTC (22 years, 7 months ago) by nmav
Branch: MAIN
Changes since 1.13: +5 -2 lines
File MIME type: text/plain
added option to include modules into the library

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

webmaster@linux.gr
ViewVC Help
Powered by ViewVC 1.1.26