]> granicus.if.org Git - libevent/commitdiff
util: fix "%zu" format on TDM-gcc/MinGW-w64
authorAzat Khuzhin <a3at.mail@gmail.com>
Wed, 24 Feb 2016 11:10:21 +0000 (14:10 +0300)
committerAzat Khuzhin <a3at.mail@gmail.com>
Wed, 24 Feb 2016 11:13:48 +0000 (14:13 +0300)
From: @gvanem
Fixes: #326
util-internal.h

index db4e5f393c2e4bae9036deac8e5bbce398b49d74..06aa97299a7ab3d18be023b6267108b7c3f91787 100644 (file)
@@ -417,7 +417,7 @@ HMODULE evutil_load_windows_system_library_(const TCHAR *library_name);
 #define EV_SOCK_ARG(x) (x)
 #endif
 
-#if defined(__STDC__) && defined(__STDC_VERSION__)
+#if defined(__STDC__) && defined(__STDC_VERSION__) && !defined(__MINGW64_VERSION_MAJOR)
 #if (__STDC_VERSION__ >= 199901L)
 #define EV_SIZE_FMT "%zu"
 #define EV_SSIZE_FMT "%zd"