aboutsummaryrefslogtreecommitdiffstats
path: root/main/libspf2/fix-gcc-variadic-macros.patch
diff options
context:
space:
mode:
Diffstat (limited to 'main/libspf2/fix-gcc-variadic-macros.patch')
-rw-r--r--main/libspf2/fix-gcc-variadic-macros.patch18
1 files changed, 18 insertions, 0 deletions
diff --git a/main/libspf2/fix-gcc-variadic-macros.patch b/main/libspf2/fix-gcc-variadic-macros.patch
new file mode 100644
index 0000000000..caac94a90f
--- /dev/null
+++ b/main/libspf2/fix-gcc-variadic-macros.patch
@@ -0,0 +1,18 @@
+diff --git a/src/include/spf_log.h b/src/include/spf_log.h
+index 0d2adeb..4e22ef4 100644
+--- a/src/include/spf_log.h
++++ b/src/include/spf_log.h
+@@ -60,10 +60,10 @@ void SPF_debugv( const char *file, int line, const char *format, va_list ap ) __
+
+ #if defined( __STDC_VERSION__ ) && __STDC_VERSION__ >= 199901L
+
+-#define SPF_errorf(format, ... ) SPF_errorx( __FILE__, __LINE__, format, __VA_ARGS__ )
+-#define SPF_warningf(format, ... ) SPF_warningx( __FILE__, __LINE__, format, __VA_ARGS__ )
+-#define SPF_infof(format, ... ) SPF_infox( __FILE__, __LINE__, format, __VA_ARGS__ )
+-#define SPF_debugf(format, ... ) SPF_debugx( __FILE__, __LINE__, format, __VA_ARGS__ )
++#define SPF_errorf(format, ... ) SPF_errorx( __FILE__, __LINE__, format, ##__VA_ARGS__ )
++#define SPF_warningf(format, ... ) SPF_warningx( __FILE__, __LINE__, format, ##__VA_ARGS__ )
++#define SPF_infof(format, ... ) SPF_infox( __FILE__, __LINE__, format, ##__VA_ARGS__ )
++#define SPF_debugf(format, ... ) SPF_debugx( __FILE__, __LINE__, format, ##__VA_ARGS__ )
+
+ #elif defined( __GNUC__ )