Skip to content

Commit 79b69d8

Browse files
committed
util: fix "%zu" format on TDM-gcc/MinGW-w64
From: @gvanem Fixes: #326
1 parent f062bbe commit 79b69d8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

util-internal.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -417,7 +417,7 @@ HMODULE evutil_load_windows_system_library_(const TCHAR *library_name);
417417
#define EV_SOCK_ARG(x) (x)
418418
#endif
419419

420-
#if defined(__STDC__) && defined(__STDC_VERSION__)
420+
#if defined(__STDC__) && defined(__STDC_VERSION__) && !defined(__MINGW64_VERSION_MAJOR)
421421
#if (__STDC_VERSION__ >= 199901L)
422422
#define EV_SIZE_FMT "%zu"
423423
#define EV_SSIZE_FMT "%zd"

0 commit comments

Comments
 (0)