From 4e1ec3e05e39699025e087929b84f3634929ae4c Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Wed, 7 Nov 2007 21:01:26 +0000 Subject: Make all the C files in the libraries compile under MSVC 2005 Express. There are still a few warnings, and probably some subtle issues, but it's better than nothing. svn:r499 --- evutil.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'evutil.h') diff --git a/evutil.h b/evutil.h index ca57e6ce..d156e663 100644 --- a/evutil.h +++ b/evutil.h @@ -109,6 +109,19 @@ int evutil_make_socket_nonblocking(int sock); #define evutil_timerisset(tvp) ((tvp)->tv_sec || (tvp)->tv_usec) #endif +#ifdef _EVENT_HAVE_STDINT_H +#include +#define ev_uint64_t uint64_t +#define ev_uint32_t uint32_t +#define ev_uint16_t uint16_t +#define ev_uint8_t uint8_t +#elif defined(WIN32) +#define ev_uint64_t __uint64_t +#define ev_uint32_t unsigned int +#define ev_uint16_t unsigned short +#define ev_uint8_t unsigned char +#endif + #ifdef __cplusplus } #endif -- cgit v1.2.1