Check for stdint.h

git-svn-id: http://svn.inspircd.org/repository/branches/1_0_stable@4262 e03df62e-2008-0410-955e-edbf42e46eb7
This commit is contained in:
brain 2006-07-10 02:37:17 +00:00
parent 318f51c935
commit 725628372c
2 changed files with 16 additions and 1 deletions

View File

@ -19,6 +19,10 @@
using namespace std;
#include <stdio.h>
#include "inspircd_config.h"
#ifndef HAS_STDINT
#include <stdint.h>
#endif
#include "users.h"
#include "channels.h"
#include "modules.h"
@ -34,7 +38,11 @@ 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)
typedef unsigned int word32; /* NOT unsigned long. We don't support 16 bit platforms, anyway. */
#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;
struct MD5Context {

View File

@ -37,12 +37,19 @@
using namespace std;
#include <stdio.h>
#include "inspircd_config.h"
#ifdef HAS_STDINT
#include <stdint.h>
#endif
#include "users.h"
#include "channels.h"
#include "modules.h"
#include "helperfuncs.h"
#ifndef HAS_STDINT
typedef unsigned int uint32_t;
#endif
static Server *Srv;
#define SHA256_DIGEST_SIZE (256 / 8)