diff src/dmres.h @ 2385:5ffc48a0bebe

Conditionally define DM_ATTR_PRINTF_FMT(xstart, xend) instead of using __attribute__ ((__format__ (__printf__, (xstart), (xend)))) directly. Wrap it in an #ifdef check for __MINGW64__ as there are some annoying issues on that side, which we just suppress now.
author Matti Hamalainen <ccr@tnsp.org>
date Thu, 09 Jan 2020 18:51:22 +0200
parents 43e39d9ec42f
children f7d54ac51880
line wrap: on
line diff
--- a/src/dmres.h	Thu Jan 09 15:20:23 2020 +0200
+++ b/src/dmres.h	Thu Jan 09 18:51:22 2020 +0200
@@ -173,7 +173,7 @@
 int          dmfputs(const char *str, DMResource *fh);
 int          dmvfprintf(DMResource *fh, const char *fmt, va_list ap);
 int          dmfprintf(DMResource *fh, const char *fmt, ...)
-             __attribute__ ((__format__ (__printf__, 2, 3)));
+             DM_ATTR_PRINTF_FMT(2, 3);
 
 // Helper functions for endianess based reading etc
 BOOL         dmf_read_str(DMResource *fh, void *ptr, const size_t len);