diff options
author | om <om@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-07-10 07:06:37 +0000 |
---|---|---|
committer | om <om@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-07-10 07:06:37 +0000 |
commit | d8aba7e60bc276d12f209466fa308aa56fa736e5 (patch) | |
tree | b062faa1a2dffe4b4d8d529012ced289dcf953e0 /src | |
parent | c307344610c7484ccd5b42d90eedfc19d72bb74b (diff) |
Add HAS_STDINT checks here, this had been sitting not in extra/ and using stdint.h for aaaages anyway...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4264 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src')
-rw-r--r-- | src/modules/m_cloaking.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/modules/m_cloaking.cpp b/src/modules/m_cloaking.cpp index b9b9f4402..33e41355c 100644 --- a/src/modules/m_cloaking.cpp +++ b/src/modules/m_cloaking.cpp @@ -31,7 +31,10 @@ #include <sys/socket.h> #include <netinet/in.h> #include <arpa/inet.h> +#include "inspircd_config.h" +#ifdef HAS_STDINT #include <stdint.h> +#endif #include "inspircd.h" #include "users.h" #include "channels.h" @@ -48,6 +51,10 @@ #define F4(x, y, z) (y ^ (x | ~z)) #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; |