]> granicus.if.org Git - libevent/commitdiff
Set _EVENT_SIZEOF_VOID_P correctly on win32 and win64
authorDimitre Piskyulev <piskyulev@users.sourceforge.net>
Wed, 27 Oct 2010 21:32:41 +0000 (17:32 -0400)
committerNick Mathewson <nickm@torproject.org>
Wed, 27 Oct 2010 21:32:41 +0000 (17:32 -0400)
WIN32-Code/event2/event-config.h

index e2b25c6006abf6d6b91403c78a013f000df200cc..ca3f60f04725f937de75aea2a854f1896c836b5d 100644 (file)
 #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