From: Nick Mathewson Date: Thu, 25 Feb 2010 22:11:28 +0000 (-0500) Subject: Try to define a sane _EVENT_SIZEOF_SIZE_T for msvc compilation X-Git-Tag: release-2.0.4-alpha~6 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1e14f826695eeeb856c614e4da57a88a7c8202b4;p=libevent Try to define a sane _EVENT_SIZEOF_SIZE_T for msvc compilation --- diff --git a/WIN32-Code/event-config.h b/WIN32-Code/event-config.h index 49faef47..95f2760f 100644 --- a/WIN32-Code/event-config.h +++ b/WIN32-Code/event-config.h @@ -310,6 +310,13 @@ /* The size of a `short', as computed by sizeof. */ #define _EVENT_SIZEOF_SHORT 2 +/* The size of `size_t', as computed by sizeof. */ +#ifdef _WIN64 +#define _EVENT_SIZEOF_SIZE_T 8 +#else +#define _EVENT_SIZEOF_SIZE_T 4 +#endif + /* Define to 1 if you have the ANSI C header files. */ #define _EVENT_STDC_HEADERS 1