mirror of
https://github.com/inspircd/inspircd.git
synced 2025-03-10 02:59:01 -04:00
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:
parent
318f51c935
commit
725628372c
@ -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 {
|
||||
|
@ -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)
|
Loading…
x
Reference in New Issue
Block a user