diff options
Diffstat (limited to 'src/modules/m_opermd5.cpp')
-rw-r--r-- | src/modules/m_opermd5.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/modules/m_opermd5.cpp b/src/modules/m_opermd5.cpp index c5ac5a0ee..d99b9a96e 100644 --- a/src/modules/m_opermd5.cpp +++ b/src/modules/m_opermd5.cpp @@ -20,7 +20,7 @@ using namespace std; #include <stdio.h> #include "inspircd_config.h" -#ifdef STDINT_H +#ifdef HAS_STDINT #include <stdint.h> #endif #include "users.h" @@ -38,6 +38,10 @@ using namespace std; #define MD5STEP(f,w,x,y,z,in,s) \ (w += f(x,y,z) + in, w = (w<<s | w>>(32-s)) + x) +#ifndef HAS_STDINT +typedef unsigned int uint32_t; +#endif + typedef uint32_t word32; /* NOT unsigned long. We don't support 16 bit platforms, anyway. */ typedef unsigned char byte; |