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

Contents of /libmcrypt/lib/libdefs.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.7 - (show annotations)
Fri Oct 20 14:44:27 2000 UTC (23 years, 6 months ago) by nmav
Branch: MAIN
Changes since 1.6: +8 -2 lines
File MIME type: text/plain
Changes for win32

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

webmaster@linux.gr
ViewVC Help
Powered by ViewVC 1.1.26