/[mcrypt]/shash/src/defines.h
ViewVC logotype

Annotation of /shash/src/defines.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1.1.1 - (hide annotations) (vendor branch)
Wed Oct 4 22:45:23 2000 UTC (23 years, 5 months ago) by nmav
Branch: shash, MAIN
CVS Tags: start, shash_0_2_6, HEAD
Changes since 1.1: +0 -0 lines
File MIME type: text/plain
Included shash into the cvs

1 nmav 1.1 #include <config.h>
2    
3     #ifdef STDC_HEADERS
4     # include <string.h>
5     # include <stdlib.h>
6     # include <stdio.h>
7     #endif
8    
9     #ifdef HAVE_STRINGS_H
10     # include <strings.h>
11     #endif
12    
13     #include <time.h>
14    
15     #ifdef HAVE_SYS_MMAN_H
16     #include <sys/mman.h>
17     #endif
18    
19     #ifdef HAVE_SYS_WAIT_H
20     # include <sys/wait.h>
21     #endif
22    
23     #ifdef HAVE_SIGNAL_H
24     # include <signal.h>
25     #endif
26    
27     #ifdef HAVE_UTIME_H
28     # include <utime.h>
29     #endif
30    
31     /* for open */
32     #ifdef HAVE_SYS_TYPES_H
33     # include <sys/types.h>
34     #endif
35    
36     #ifdef HAVE_PWD_H
37     # include <pwd.h>
38     #endif
39    
40     #ifdef HAVE_FCNTL_H
41     # include <fcntl.h>
42     #endif
43    
44     #ifdef HAVE_SYS_STAT_H
45     # include <sys/stat.h>
46     #endif
47    
48     #ifdef HAVE_UNISTD_H
49     # include <unistd.h>
50     #endif
51    
52    
53     #if SIZEOF_UNSIGNED_LONG_INT == 4
54     typedef unsigned long word32;
55     typedef signed long sword32;
56     #elif SIZEOF_UNSIGNED_INT == 4
57     typedef unsigned int word32;
58     typedef signed int sword32;
59     #else
60     # error "Cannot find a 32 bit integer in your system, sorry."
61     #endif
62    
63     #if SIZEOF_UNSIGNED_INT == 2
64     typedef unsigned int word16;
65     #elif SIZEOF_UNSIGNED_SHORT_INT == 2
66     typedef unsigned short word16;
67     #else
68     # error "Cannot find a 16 bit integer in your system, sorry."
69     #endif
70    
71     #if SIZEOF_UNSIGNED_CHAR == 1
72     typedef unsigned char word8;
73     #else
74     # error "Cannot find an 8 bit char in your system, sorry."
75     #endif
76    
77     #ifndef HAVE_MEMMOVE
78     # ifdef HAVE_BCOPY
79     # define memmove(d, s, n) bcopy ((s), (d), (n))
80     # else
81     # error "Neither memmove nor bcopy exists on your system."
82     # endif
83     #endif
84    
85     #define TRUE 1
86     #define FALSE 0

webmaster@linux.gr
ViewVC Help
Powered by ViewVC 1.1.26