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

Annotation of /libmcrypt/lib/libdefs.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.12 - (hide annotations)
Wed Jul 11 07:34:20 2001 UTC (22 years, 9 months ago) by nmav
Branch: MAIN
Changes since 1.11: +4 -0 lines
File MIME type: text/plain
corrected bug for solaris 'readdir_r'

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

webmaster@linux.gr
ViewVC Help
Powered by ViewVC 1.1.26