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

Annotation of /libmcrypt/lib/libdefs.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.6 - (hide annotations)
Thu Oct 12 21:06:31 2000 UTC (23 years, 5 months ago) by nmav
Branch: MAIN
Changes since 1.5: +1 -0 lines
File MIME type: text/plain
Added defines and some function emulation needed in WIN32. Thanks goes
to Dimitris Souflis (dsouflis@altera.gr)

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

webmaster@linux.gr
ViewVC Help
Powered by ViewVC 1.1.26