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

Contents of /libmcrypt/lib/libdefs.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations)
Mon May 22 13:07:51 2000 UTC (23 years, 11 months ago) by nmav
Branch: MAIN
Branch point for: mcrypt
File MIME type: text/plain
Initial revision

1 /* MAX_THREADS removed by Steve Underwood 1999/12/10 */
2
3 #ifdef HAVE_CONFIG_H
4 # include <config.h>
5 #endif
6
7 #include "../libltdl/ltdl.h"
8
9 #ifdef STDC_HEADERS
10 # include <string.h>
11 # include <stdlib.h>
12 # include <stdio.h>
13 #endif
14
15 #ifdef HAVE_DIRENT_H
16 # include <dirent.h>
17 #endif
18
19 #ifdef HAVE_STRINGS_H
20 # include <strings.h>
21 #endif
22
23 #ifdef HAVE_UNISTD_H
24 # include <unistd.h>
25 #endif
26
27 #ifdef HAVE_LIBPTHREAD
28 # include <pthread.h>
29 #endif
30
31 #if SIZEOF_UNSIGNED_LONG_INT == 4
32 typedef unsigned long word32;
33 typedef signed long sword32;
34 #elif SIZEOF_UNSIGNED_INT == 4
35 typedef unsigned int word32;
36 typedef signed int sword32;
37 #else
38 # error "Cannot find a 32 bit integer in your system, sorry."
39 #endif
40
41 #if SIZEOF_UNSIGNED_INT == 2
42 typedef unsigned int word16;
43 #elif SIZEOF_UNSIGNED_SHORT_INT == 2
44 typedef unsigned short word16;
45 #else
46 # error "Cannot find a 16 bit integer in your system, sorry."
47 #endif
48
49 #if SIZEOF_UNSIGNED_CHAR == 1
50 typedef unsigned char word8;
51 #else
52 # error "Cannot find an 8 bit char in your system, sorry."
53 #endif
54
55 #ifndef HAVE_MEMMOVE
56 # ifdef HAVE_BCOPY
57 # define memmove(d, s, n) bcopy ((s), (d), (n))
58 # else
59 # error "Neither memmove nor bcopy exists on your system."
60 # endif
61 #endif
62
63
64 #define MAX_KEY_LEN 513 /* for gen_key */

webmaster@linux.gr
ViewVC Help
Powered by ViewVC 1.1.26