From b285ef3229737b772853b7042b767896ce73fa1f Mon Sep 17 00:00:00 2001 From: brain Date: Mon, 10 Jul 2006 02:34:58 +0000 Subject: Support for systems without stdint.h (we make a guess at sizeof(unsigned int) == 32... if youre running an outdated OS its your own fault) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4261 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_opermd5.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/modules/m_opermd5.cpp') 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 #include "inspircd_config.h" -#ifdef STDINT_H +#ifdef HAS_STDINT #include #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<>(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; -- cgit v1.2.3