Main Page | Modules | Data Structures | File List | Data Fields | Globals | Related Pages

beecrypt.win.h

Go to the documentation of this file.
00001 /*
00002  * Copyright (c) 2000, 2001, 2002 Virtual Unlimited B.V.
00003  *
00004  * This library is free software; you can redistribute it and/or
00005  * modify it under the terms of the GNU Lesser General Public
00006  * License as published by the Free Software Foundation; either
00007  * version 2.1 of the License, or (at your option) any later version.
00008  *
00009  * This library is distributed in the hope that it will be useful,
00010  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00011  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00012  * Lesser General Public License for more details.
00013  *
00014  * You should have received a copy of the GNU Lesser General Public
00015  * License along with this library; if not, write to the Free Software
00016  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
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_ERRNO_H            1
00060 #define HAVE_CTYPE_H            1
00061 #define HAVE_FCNTL_H            1
00062 #define HAVE_TIME_H             1
00063 
00064 #define HAVE_SYS_TYPES_H        0
00065 #define HAVE_SYS_TIME_H         0
00066 
00067 #define HAVE_THREAD_H           0
00068 #define HAVE_SYNCH_H            0
00069 #define HAVE_PTHREAD_H          0
00070 #define HAVE_SEMAPHORE_H        0
00071 
00072 #define HAVE_TERMIO_H           0
00073 #define HAVE_SYS_AUDIOIO_H      0
00074 #define HAVE_SYS_IOCTL_H        0
00075 #define HAVE_SYS_SOUNDCARD_H    0
00076 
00077 #define HAVE_GETTIMEOFDAY       0
00078 #define HAVE_GETHRTIME          0
00079 
00080 #define HAVE_DEV_TTY            0
00081 #define HAVE_DEV_AUDIO          0
00082 #define HAVE_DEV_DSP            0
00083 #define HAVE_DEV_RANDOM         0
00084 #define HAVE_DEV_URANDOM        0
00085 #define HAVE_DEV_TTY            0
00086 
00087 #else
00088 #error Not set up for this compiler
00089 #endif
00090 
00091 #if __MWERKS__
00092 #define HAVE_SYS_STAT_H         0
00093 
00094 #define HAVE_LONG_LONG          1
00095 #define HAVE_UNSIGNED_LONG_LONG 1
00096 
00097 #define HAVE_64_BIT_INT         1
00098 #define HAVE_64_BIT_UINT        1
00099 
00100 typedef char        int8_t;
00101 typedef short       int16_t;
00102 typedef long        int32_t;
00103 typedef long long   int64_t;
00104 
00105 typedef unsigned char       uint8_t;
00106 typedef unsigned short      uint16_t;
00107 typedef unsigned long       uint32_t;
00108 typedef unsigned long long  uint64_t;
00109 
00110 #elif defined(_MSC_VER)
00111 #define HAVE_SYS_STAT_H         1
00112 
00113 #define HAVE_LONG_LONG          0
00114 #define HAVE_UNSIGNED_LONG_LONG 0
00115 
00116 #define HAVE_64_BIT_INT         1
00117 #define HAVE_64_BIT_UINT        1
00118 
00119 typedef __int8  int8_t;
00120 typedef __int16 int16_t;
00121 typedef __int32 int32_t;
00122 typedef __int64 int64_t;
00123 
00124 typedef unsigned __int8     uint8_t;
00125 typedef unsigned __int16    uint16_t;
00126 typedef unsigned __int32    uint32_t;
00127 typedef unsigned __int64    uint64_t;
00128 
00129 #endif
00130 
00131 #define MP_WBITS    32U
00132 
00133 #endif

Generated on Wed Mar 24 13:56:53 2004 for BeeCrypt by doxygen 1.3.6