From 1ae82cd8c6aba98d21342d242facd1bb5e461555 Mon Sep 17 00:00:00 2001 From: Dimitre Piskyulev Date: Wed, 27 Oct 2010 17:32:41 -0400 Subject: [PATCH] Set _EVENT_SIZEOF_VOID_P correctly on win32 and win64 --- WIN32-Code/event2/event-config.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/WIN32-Code/event2/event-config.h b/WIN32-Code/event2/event-config.h index e2b25c60..ca3f60f0 100644 --- a/WIN32-Code/event2/event-config.h +++ b/WIN32-Code/event2/event-config.h @@ -317,6 +317,13 @@ #define _EVENT_SIZEOF_SIZE_T 4 #endif +/* The size of `void *', as computed by sizeof. */ +#ifdef _WIN64 +#define _EVENT_SIZEOF_VOID_P 8 +#else +#define _EVENT_SIZEOF_VOID_P 4 +#endif + /* Define to 1 if you have the ANSI C header files. */ #define _EVENT_STDC_HEADERS 1