This fixes the build for Visual Studio 2008.
#include <stddef.h>
#include <basetsd.h>
#ifndef _WIN32_WCE
-#include <stdint.h>
#include <fcntl.h>
#else
#define _O_RDONLY 0x0000
};
struct per_session_data__ping {
- uint64_t ping_index;
+ unsigned long long ping_index;
struct ping ringbuffer[PING_RINGBUFFER_SIZE];
int ringbuffer_head;
unsigned char *p;
unsigned long iv;
int match = 0;
- uint64_t l;
+ unsigned long long l;
int shift;
int n;
l = 0;
while (shift >= 0) {
- l |= ((uint64_t)*p++) << shift;
+ l |= ((unsigned long long)*p++) << shift;
shift -= 8;
}