vcpkg/ports/libjpeg-turbo/fix-incompatibility-for-c11-c17.patch

14 lines
374 B
Diff

diff --git a/tjutil.h b/tjutil.h
index f72840c..a3ae19f 100644
--- a/tjutil.h
+++ b/tjutil.h
@@ -30,7 +30,7 @@
#ifndef __MINGW32__
#include <stdio.h>
#define snprintf(str, n, format, ...) \
- _snprintf_s(str, n, _TRUNCATE, format, __VA_ARGS__)
+ _snprintf_s(str, n, _TRUNCATE, format, ## __VA_ARGS__)
#endif
#define strcasecmp stricmp
#define strncasecmp strnicmp