diff options
author | Maurus Cuelenaere <mcuelenaere@gmail.com> | 2008-07-11 15:50:46 +0000 |
---|---|---|
committer | Maurus Cuelenaere <mcuelenaere@gmail.com> | 2008-07-11 15:50:46 +0000 |
commit | 14c7f45cdae826f88dc539c8c38dd95caf305731 (patch) | |
tree | 832da054b7cfb2dc6fd63339af736625f31d21aa /utils/zenutils/libraries/beecrypt-4.1.2/beecrypt/win.h | |
parent | 7c84ede3781c27db73403bd6302f320c76a58c8c (diff) | |
download | rockbox-14c7f45cdae826f88dc539c8c38dd95caf305731.tar.gz rockbox-14c7f45cdae826f88dc539c8c38dd95caf305731.zip |
Add zook's ZenUtils to SVN
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18010 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'utils/zenutils/libraries/beecrypt-4.1.2/beecrypt/win.h')
-rwxr-xr-x | utils/zenutils/libraries/beecrypt-4.1.2/beecrypt/win.h | 139 |
1 files changed, 139 insertions, 0 deletions
diff --git a/utils/zenutils/libraries/beecrypt-4.1.2/beecrypt/win.h b/utils/zenutils/libraries/beecrypt-4.1.2/beecrypt/win.h new file mode 100755 index 0000000000..d578085c29 --- /dev/null +++ b/utils/zenutils/libraries/beecrypt-4.1.2/beecrypt/win.h | |||
@@ -0,0 +1,139 @@ | |||
1 | /* | ||
2 | * Copyright (c) 2000, 2001, 2002 Virtual Unlimited B.V. | ||
3 | * | ||
4 | * This library is free software; you can redistribute it and/or | ||
5 | * modify it under the terms of the GNU Lesser General Public | ||
6 | * License as published by the Free Software Foundation; either | ||
7 | * version 2.1 of the License, or (at your option) any later version. | ||
8 | * | ||
9 | * This library is distributed in the hope that it will be useful, | ||
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
12 | * Lesser General Public License for more details. | ||
13 | * | ||
14 | * You should have received a copy of the GNU Lesser General Public | ||
15 | * License along with this library; if not, write to the Free Software | ||
16 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | ||
17 | * | ||
18 | */ | ||
19 | |||
20 | /*!\file win.h | ||
21 | * \brief BeeCrypt API, windows headers. | ||
22 | * \author Bob Deblier <bob.deblier@pandora.be> | ||
23 | */ | ||
24 | |||
25 | #ifndef _BEECRYPT_WIN_H | ||
26 | #define _BEECRYPT_WIN_H | ||
27 | |||
28 | #define _REENTRANT | ||
29 | |||
30 | #if !defined(_WIN32_WINNT) | ||
31 | #define _WIN32_WINNT 0x0400 | ||
32 | #endif | ||
33 | |||
34 | #include <windows.h> | ||
35 | |||
36 | #if __MWERKS__ | ||
37 | # if __INTEL__ | ||
38 | # define WORDS_BIGENDIAN 0 | ||
39 | # else | ||
40 | # error Unknown CPU type in MetroWerks CodeWarrior | ||
41 | # endif | ||
42 | #elif defined(_MSC_VER) | ||
43 | # if defined(_M_IX86) | ||
44 | # define WORDS_BIGENDIAN 0 | ||
45 | # define ROTL32(x, s) _rotl(x, s) | ||
46 | # define ROTR32(x, s) _rotr(x, s) | ||
47 | # else | ||
48 | # error Unknown CPU type in Microsoft Visual C | ||
49 | # endif | ||
50 | #else | ||
51 | # error Unknown compiler for WIN32 | ||
52 | #endif | ||
53 | |||
54 | #if defined(_MSC_VER) || __MWERKS__ | ||
55 | #include <stdio.h> | ||
56 | #include <stdlib.h> | ||
57 | #include <string.h> | ||
58 | |||
59 | #define HAVE_ERRNO_H 1 | ||
60 | #define HAVE_CTYPE_H 1 | ||
61 | #define HAVE_FCNTL_H 1 | ||
62 | #define HAVE_TIME_H 1 | ||
63 | |||
64 | #define HAVE_SYS_TYPES_H 0 | ||
65 | #define HAVE_SYS_TIME_H 0 | ||
66 | |||
67 | #define HAVE_THREAD_H 0 | ||
68 | #define HAVE_SYNCH_H 0 | ||
69 | #define HAVE_PTHREAD_H 0 | ||
70 | #define HAVE_SEMAPHORE_H 0 | ||
71 | |||
72 | #define HAVE_TERMIO_H 0 | ||
73 | #define HAVE_SYS_AUDIOIO_H 0 | ||
74 | #define HAVE_SYS_IOCTL_H 0 | ||
75 | #define HAVE_SYS_SOUNDCARD_H 0 | ||
76 | |||
77 | #define HAVE_GETTIMEOFDAY 0 | ||
78 | #define HAVE_GETHRTIME 0 | ||
79 | |||
80 | #define HAVE_DEV_TTY 0 | ||
81 | #define HAVE_DEV_AUDIO 0 | ||
82 | #define HAVE_DEV_DSP 0 | ||
83 | #define HAVE_DEV_RANDOM 0 | ||
84 | #define HAVE_DEV_URANDOM 0 | ||
85 | #define HAVE_DEV_TTY 0 | ||
86 | |||
87 | #else | ||
88 | #error Not set up for this compiler | ||
89 | #endif | ||
90 | |||
91 | #if __MWERKS__ | ||
92 | #define HAVE_SYS_STAT_H 0 | ||
93 | |||
94 | #define HAVE_LONG_LONG 1 | ||
95 | #define HAVE_UNSIGNED_LONG_LONG 1 | ||
96 | |||
97 | #define HAVE_64_BIT_INT 1 | ||
98 | #define HAVE_64_BIT_UINT 1 | ||
99 | |||
100 | typedef char int8_t; | ||
101 | typedef short int16_t; | ||
102 | typedef long int32_t; | ||
103 | typedef long long int64_t; | ||
104 | |||
105 | typedef unsigned char uint8_t; | ||
106 | typedef unsigned short uint16_t; | ||
107 | typedef unsigned long uint32_t; | ||
108 | typedef unsigned long long uint64_t; | ||
109 | |||
110 | #elif defined(_MSC_VER) | ||
111 | #define HAVE_SYS_STAT_H 1 | ||
112 | |||
113 | #define HAVE_LONG_LONG 0 | ||
114 | #define HAVE_UNSIGNED_LONG_LONG 0 | ||
115 | |||
116 | #define HAVE_64_BIT_INT 1 | ||
117 | #define HAVE_64_BIT_UINT 1 | ||
118 | |||
119 | typedef signed char int8_t; | ||
120 | typedef signed short int16_t; | ||
121 | typedef signed int int32_t; | ||
122 | typedef signed __int64 int64_t; | ||
123 | |||
124 | typedef unsigned char uint8_t; | ||
125 | typedef unsigned short uint16_t; | ||
126 | typedef unsigned int uint32_t; | ||
127 | typedef unsigned __int64 uint64_t; | ||
128 | |||
129 | typedef long off_t; | ||
130 | |||
131 | #endif | ||
132 | |||
133 | #define MP_WBITS 32U | ||
134 | |||
135 | typedef HANDLE bc_cond_t; | ||
136 | typedef HANDLE bc_mutex_t; | ||
137 | typedef HANDLE bc_thread_t; | ||
138 | |||
139 | #endif | ||