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

Annotation of /libmcrypt/lib/libdefs.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.10 - (hide annotations)
Thu May 17 18:58:20 2001 UTC (22 years, 10 months ago) by nmav
Branch: MAIN
Changes since 1.9: +5 -3 lines
File MIME type: text/plain
fixes to work with the new libltdl

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

webmaster@linux.gr
ViewVC Help
Powered by ViewVC 1.1.26