Go to the documentation of this file.
26 #ifndef _BEECRYPT_WIN_H
27 #define _BEECRYPT_WIN_H
31 #if !defined(_WIN32_WINNT)
32 # define _WIN32_WINNT 0x0400
37 #define WORDS_BIGENDIAN 0
42 # error Unknown CPU type in MetroWerks CodeWarrior
44 #elif defined(_MSC_VER)
46 # define ROTL32(x, s) _rotl(x, s)
47 # define ROTR32(x, s) _rotr(x, s)
49 # error Unknown CPU type in Microsoft Visual C
52 # error Unknown compiler for WIN32
55 #if defined(_MSC_VER) || __MWERKS__
60 # define HAVE_ASSERT_H 1
62 # define HAVE_ERRNO_H 1
63 # define HAVE_CTYPE_H 1
64 # define HAVE_FCNTL_H 1
65 # define HAVE_TIME_H 1
67 # define HAVE_SYS_TYPES_H 0
68 # define HAVE_SYS_TIME_H 0
70 # define HAVE_THREAD_H 0
71 # define HAVE_SYNCH_H 0
72 # define HAVE_PTHREAD_H 0
73 # define HAVE_SEMAPHORE_H 0
75 # define HAVE_TERMIO_H 0
76 # define HAVE_SYS_AUDIOIO_H 0
77 # define HAVE_SYS_IOCTL_H 0
78 # define HAVE_SYS_SOUNDCARD_H 0
80 # define HAVE_GETTIMEOFDAY 0
81 # define HAVE_GETHRTIME 0
83 # define HAVE_DEV_TTY 0
84 # define HAVE_DEV_AUDIO 0
85 # define HAVE_DEV_DSP 0
86 # define HAVE_DEV_RANDOM 0
87 # define HAVE_DEV_URANDOM 0
88 # define HAVE_DEV_TTY 0
90 # error Not set up for this compiler
95 # define HAVE_SYS_STAT_H 0
97 # define HAVE_LONG_LONG 1
98 # define HAVE_UNSIGNED_LONG_LONG 1
100 # define HAVE_64_BIT_INT 1
101 # define HAVE_64_BIT_UINT 1
103 # define SIZEOF_SIZE_T 4
104 # define SIZEOF_UNSIGNED_LONG 4
107 typedef short int16_t;
108 typedef long int32_t;
109 typedef long long int64_t;
111 typedef unsigned char uint8_t;
112 typedef unsigned short uint16_t;
113 typedef unsigned long uint32_t;
114 typedef unsigned long long uint64_t;
116 #elif defined(_MSC_VER)
118 # define HAVE_SYS_STAT_H 1
120 # define HAVE_LONG_LONG 0
121 # define HAVE_UNSIGNED_LONG_LONG 0
123 # define HAVE_64_BIT_INT 1
124 # define HAVE_64_BIT_UINT 1
126 # define SIZEOF_SIZE_T 4
127 # define SIZEOF_UNSIGNED_LONG 4
129 typedef signed char int8_t;
130 typedef signed short int16_t;
131 typedef signed int int32_t;
132 typedef signed __int64 int64_t;
134 typedef unsigned char uint8_t;
135 typedef unsigned short uint16_t;
136 typedef unsigned int uint32_t;
137 typedef unsigned __int64 uint64_t;