00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00025 #ifndef _BEECRYPT_WIN_H
00026 #define _BEECRYPT_WIN_H
00027
00028 #define _REENTRANT
00029
00030 #if !defined(_WIN32_WINNT)
00031 #define _WIN32_WINNT 0x0400
00032 #endif
00033
00034 #include <windows.h>
00035
00036 #if __MWERKS__
00037 # if __INTEL__
00038 # define WORDS_BIGENDIAN 0
00039 # else
00040 # error Unknown CPU type in MetroWerks CodeWarrior
00041 # endif
00042 #elif defined(_MSC_VER)
00043 # if defined(_M_IX86)
00044 # define WORDS_BIGENDIAN 0
00045 # define ROTL32(x, s) _rotl(x, s)
00046 # define ROTR32(x, s) _rotr(x, s)
00047 # else
00048 # error Unknown CPU type in Microsoft Visual C
00049 # endif
00050 #else
00051 # error Unknown compiler for WIN32
00052 #endif
00053
00054 #if defined(_MSC_VER) || __MWERKS__
00055 #include <stdio.h>
00056 #include <stdlib.h>
00057 #include <string.h>
00058
00059 #define HAVE_ASSERT_H 1
00060
00061 #define HAVE_ERRNO_H 1
00062 #define HAVE_CTYPE_H 1
00063 #define HAVE_FCNTL_H 1
00064 #define HAVE_TIME_H 1
00065
00066 #define HAVE_SYS_TYPES_H 0
00067 #define HAVE_SYS_TIME_H 0
00068
00069 #define HAVE_THREAD_H 0
00070 #define HAVE_SYNCH_H 0
00071 #define HAVE_PTHREAD_H 0
00072 #define HAVE_SEMAPHORE_H 0
00073
00074 #define HAVE_TERMIO_H 0
00075 #define HAVE_SYS_AUDIOIO_H 0
00076 #define HAVE_SYS_IOCTL_H 0
00077 #define HAVE_SYS_SOUNDCARD_H 0
00078
00079 #define HAVE_GETTIMEOFDAY 0
00080 #define HAVE_GETHRTIME 0
00081
00082 #define HAVE_DEV_TTY 0
00083 #define HAVE_DEV_AUDIO 0
00084 #define HAVE_DEV_DSP 0
00085 #define HAVE_DEV_RANDOM 0
00086 #define HAVE_DEV_URANDOM 0
00087 #define HAVE_DEV_TTY 0
00088
00089 #else
00090 #error Not set up for this compiler
00091 #endif
00092
00093 #if __MWERKS__
00094 #define HAVE_SYS_STAT_H 0
00095
00096 #define HAVE_LONG_LONG 1
00097 #define HAVE_UNSIGNED_LONG_LONG 1
00098
00099 #define HAVE_64_BIT_INT 1
00100 #define HAVE_64_BIT_UINT 1
00101
00102 #define SIZEOF_SIZE_T 4
00103 #define SIZEOF_UNSIGNED_LONG 4
00104
00105 typedef char int8_t;
00106 typedef short int16_t;
00107 typedef long int32_t;
00108 typedef long long int64_t;
00109
00110 typedef unsigned char uint8_t;
00111 typedef unsigned short uint16_t;
00112 typedef unsigned long uint32_t;
00113 typedef unsigned long long uint64_t;
00114
00115 #elif defined(_MSC_VER)
00116 #define HAVE_SYS_STAT_H 1
00117
00118 #define HAVE_LONG_LONG 0
00119 #define HAVE_UNSIGNED_LONG_LONG 0
00120
00121 #define HAVE_64_BIT_INT 1
00122 #define HAVE_64_BIT_UINT 1
00123
00124 #define SIZEOF_SIZE_T 4
00125 #define SIZEOF_UNSIGNED_LONG 4
00126
00127 typedef signed char int8_t;
00128 typedef signed short int16_t;
00129 typedef signed int int32_t;
00130 typedef signed __int64 int64_t;
00131
00132 typedef unsigned char uint8_t;
00133 typedef unsigned short uint16_t;
00134 typedef unsigned int uint32_t;
00135 typedef unsigned __int64 uint64_t;
00136
00137 typedef long off_t;
00138
00139 #endif
00140
00141 #define MP_WBITS 32U
00142
00143 typedef HANDLE bc_cond_t;
00144 typedef HANDLE bc_mutex_t;
00145 typedef HANDLE bc_thread_t;
00146 typedef DWORD bc_threadid_t;
00147
00148 #endif