diff --git a/common/include/physfsx.h b/common/include/physfsx.h index 01be1dc24..d330cc943 100644 --- a/common/include/physfsx.h +++ b/common/include/physfsx.h @@ -19,6 +19,7 @@ #include #endif +#include "fmtcheck.h" #include "dxxsconf.h" #include "pstypes.h" #include "strutil.h" @@ -199,6 +200,7 @@ static inline char * PHYSFSX_fgets(char (&buf)[n], PHYSFS_file *const fp) static inline int PHYSFSX_printf(PHYSFS_file *file, const char *format, ...) __attribute_format_printf(2, 3); static inline int PHYSFSX_printf(PHYSFS_file *file, const char *format, ...) +#define PHYSFSX_printf(A1,F,...) dxx_call_printf_checked(PHYSFSX_printf,PHYSFSX_puts,(A1),(F),##__VA_ARGS__) { char buffer[1024]; va_list args;