|
From: Nick M. <ni...@us...> - 2010-02-25 22:15:28
|
Author: Nick Mathewson <ni...@to...> Date: Thu, 25 Feb 2010 17:11:28 -0500 Subject: Try to define a sane _EVENT_SIZEOF_SIZE_T for msvc compilation Commit: 1e14f826695eeeb856c614e4da57a88a7c8202b4 --- WIN32-Code/event-config.h | 7 +++++++ 1 files changed, 7 insertions(+), 0 deletions(-) diff --git a/WIN32-Code/event-config.h b/WIN32-Code/event-config.h index 49faef4..95f2760 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 -- 1.6.3 |