aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorlloyd <[email protected]>2012-09-04 15:17:20 +0000
committerlloyd <[email protected]>2012-09-04 15:17:20 +0000
commit7f888f4bbcf8d11ff5916b1056ab181962da5b90 (patch)
tree8f1e0209b66e54c2dff4d9b72fbd870572673354 /src
parent0943effa1b4393d0119f7cb267c1d67279cb2e72 (diff)
Avoid putting dword typedef in global namespace
Diffstat (limited to 'src')
-rw-r--r--src/math/mp/mp_generic/mp_asm.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/math/mp/mp_generic/mp_asm.h b/src/math/mp/mp_generic/mp_asm.h
index 7c18343ef..08f40aa67 100644
--- a/src/math/mp/mp_generic/mp_asm.h
+++ b/src/math/mp/mp_generic/mp_asm.h
@@ -11,20 +11,20 @@
#include <botan/mp_types.h>
+namespace Botan {
+
#if (BOTAN_MP_WORD_BITS == 8)
- typedef Botan::u16bit dword;
+ typedef u16bit dword;
#elif (BOTAN_MP_WORD_BITS == 16)
- typedef Botan::u32bit dword;
+ typedef u32bit dword;
#elif (BOTAN_MP_WORD_BITS == 32)
- typedef Botan::u64bit dword;
+ typedef u64bit dword;
#elif (BOTAN_MP_WORD_BITS == 64)
#error BOTAN_MP_WORD_BITS can be 64 only with assembly support
#else
#error BOTAN_MP_WORD_BITS must be 8, 16, 32, or 64
#endif
-namespace Botan {
-
extern "C" {
/*