]> granicus.if.org Git - libevent/commitdiff
Try to define a sane _EVENT_SIZEOF_SIZE_T for msvc compilation
authorNick Mathewson <nickm@torproject.org>
Thu, 25 Feb 2010 22:11:28 +0000 (17:11 -0500)
committerNick Mathewson <nickm@torproject.org>
Thu, 25 Feb 2010 22:11:48 +0000 (17:11 -0500)
WIN32-Code/event-config.h

index 49faef475ca6fa20d44bd7d587e00e4520595278..95f2760f184dc23abbe635944edd89bae8caa031 100644 (file)
 /* 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