SHA256
1
0
forked from pool/Botan
Botan/Botan-inttypes.patch

33 lines
875 B
Diff
Raw Normal View History

Index: src/utils/types.h
===================================================================
--- src/utils/types.h.orig 2009-11-03 19:02:17.000000000 +0100
+++ src/utils/types.h 2009-11-23 18:18:51.924780607 +0100
@@ -9,21 +9,22 @@
#define BOTAN_TYPES_H__
#include <botan/build.h>
+#include <stdint.h>
namespace Botan {
-typedef unsigned char byte;
-typedef unsigned short u16bit;
-typedef unsigned int u32bit;
+typedef uint8_t byte;
+typedef uint16_t u16bit;
+typedef uint32_t u32bit;
-typedef signed int s32bit;
+typedef int32_t s32bit;
#if defined(_MSC_VER) || defined(__BORLANDC__)
typedef unsigned __int64 u64bit;
#elif defined(__KCC)
typedef unsigned __long_long u64bit;
#elif defined(__GNUG__)
- __extension__ typedef unsigned long long u64bit;
+ __extension__ typedef uint64_t u64bit;
#else
typedef unsigned long long u64bit;
#endif