summaryrefslogtreecommitdiffstats
path: root/utils/zenutils/libraries/beecrypt-4.1.2
diff options
context:
space:
mode:
authorMaurus Cuelenaere <mcuelenaere@gmail.com>2008-08-24 21:15:29 +0000
committerMaurus Cuelenaere <mcuelenaere@gmail.com>2008-08-24 21:15:29 +0000
commitced10d4db18947c724d25dfc923a22c9aff3f629 (patch)
treebc93ad2e3bdf67240947b01c6f96026c89750f03 /utils/zenutils/libraries/beecrypt-4.1.2
parent074e48c08c439ef40416fb9b264a1f113c69a3b3 (diff)
downloadrockbox-ced10d4db18947c724d25dfc923a22c9aff3f629.tar.gz
rockbox-ced10d4db18947c724d25dfc923a22c9aff3f629.tar.bz2
rockbox-ced10d4db18947c724d25dfc923a22c9aff3f629.zip
ZenUtils:
* Apply FS#9311 by Jelle Geerts: fix compiling on MingW * Make zen::find_firmware_offset() detect the offset better git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18340 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'utils/zenutils/libraries/beecrypt-4.1.2')
-rw-r--r--utils/zenutils/libraries/beecrypt-4.1.2/beecrypt/win.h6
1 files changed, 4 insertions, 2 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
index d578085c29..04a08c609f 100644
--- a/utils/zenutils/libraries/beecrypt-4.1.2/beecrypt/win.h
+++ b/utils/zenutils/libraries/beecrypt-4.1.2/beecrypt/win.h
@@ -39,7 +39,7 @@
# else
# error Unknown CPU type in MetroWerks CodeWarrior
# endif
-#elif defined(_MSC_VER)
+#elif defined(_MSC_VER) || defined(__MINGW32__)
# if defined(_M_IX86)
# define WORDS_BIGENDIAN 0
# define ROTL32(x, s) _rotl(x, s)
@@ -51,7 +51,7 @@
# error Unknown compiler for WIN32
#endif
-#if defined(_MSC_VER) || __MWERKS__
+#if defined(_MSC_VER) || defined(__MINGW32__) || __MWERKS__
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
@@ -128,6 +128,8 @@ typedef unsigned __int64 uint64_t;
typedef long off_t;
+#elif defined(__MINGW32__)
+#include <stdint.h>
#endif
#define MP_WBITS 32U