aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib
diff options
context:
space:
mode:
authorlloyd <[email protected]>2014-02-21 22:50:14 +0000
committerlloyd <[email protected]>2014-02-21 22:50:14 +0000
commit4a8feb3bdd422aede7c888ff97bb5f39cebb1f63 (patch)
treed9b6a532ca6a4e550f4d125913e5cfa3e82cde16 /src/lib
parent6f96b54519ba799418fca4e4efd2a0c60163d052 (diff)
Use stdint.h instead of cstdint for Clang. Bugzilla 266
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/utils/types.h16
1 files changed, 9 insertions, 7 deletions
diff --git a/src/lib/utils/types.h b/src/lib/utils/types.h
index 253aaa66a..13bb4b604 100644
--- a/src/lib/utils/types.h
+++ b/src/lib/utils/types.h
@@ -11,7 +11,7 @@
#include <botan/build.h>
#include <botan/assert.h>
#include <cstddef>
-#include <cstdint>
+#include <stdint.h>
#include <memory>
/**
@@ -19,18 +19,20 @@
*/
namespace Botan {
-using std::uint8_t;
-using std::uint16_t;
-using std::uint32_t;
-using std::uint64_t;
-using std::size_t;
+using ::uint8_t;
+using ::uint16_t;
+using ::uint32_t;
+using ::uint64_t;
+using ::int32_t;
+
+using ::size_t;
typedef uint8_t byte;
typedef uint16_t u16bit;
typedef uint32_t u32bit;
typedef uint64_t u64bit;
-typedef std::int32_t s32bit;
+typedef int32_t s32bit;
/**
* A default buffer size; typically a memory page