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

Annotation of /libmcrypt/lib/libdefs.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.18 - (hide annotations)
Sat Mar 9 20:29:03 2002 UTC (22 years, 1 month ago) by nmav
Branch: MAIN
CVS Tags: libmcrypt_2_5_3, libmcrypt_2_5_2, libmcrypt_2_5_0, libmcrypt_2_5_7, libmcrypt_2_5_6, libmcrypt_2_5_5, libmcrypt_2_5_4, libmcrypt_2_5_5rc1, HEAD
Changes since 1.17: +5 -12 lines
File MIME type: text/plain
Added the --disable-dynamic-loading parameter to the configure script,
and instructions for how to build the library for staticaly linking.

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.12
11 nmav 1.8 #ifdef HAVE_SYS_TYPES_H
12     # include <sys/types.h>
13     #endif
14    
15 nmav 1.6 #include "win32_comp.h"
16 nmav 1.5
17 nmav 1.2 #ifdef USE_LTDL
18 nmav 1.10 # include <ltdl.h>
19 nmav 1.2 #else
20 nmav 1.4 # define lt_dlexit() 0
21     # define lt_dlinit() 0
22 nmav 1.18 # define lt_dlclose(x) 0
23     # define lt_dlsym(x,y) 0
24 nmav 1.2 # define lt_dlhandle void*
25     # define lt_ptr_t void*
26 nmav 1.18 # define lt_dlerror() 0
27     # define lt_dlopenext(x) 0
28     # define lt_dlsetsearchpath(x) 0
29 nmav 1.2 #endif
30 nmav 1.1
31     #ifdef STDC_HEADERS
32     # include <stdlib.h>
33     # include <stdio.h>
34 nmav 1.10 # include <ctype.h>
35 nmav 1.15 # include <string.h>
36 nmav 1.1 #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 nmav 1.16 #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 nmav 1.1 #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 nmav 1.9 typedef unsigned char byte;
91 nmav 1.1 #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 nmav 1.17 #ifdef USE_DMALLOC
104     # include <dmalloc.h>
105     #endif
106    
107 nmav 1.14 #endif /* LIBDEFS_H */
108    

webmaster@linux.gr
ViewVC Help
Powered by ViewVC 1.1.26