Mercurial > hg > dmlib
comparison tools/lib64util.c @ 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 | 45d863deb00b |
comparison
equal
deleted
inserted
replaced
2384:36edd316184a | 2385:5ffc48a0bebe |
---|---|
108 | 108 |
109 return buf; | 109 return buf; |
110 } | 110 } |
111 | 111 |
112 | 112 |
113 __attribute__ ((__format__ (__printf__, 4, 5))) | 113 DM_ATTR_PRINTF_FMT(4, 5) |
114 static void dmC64ImageDumpLine(FILE *fh, const char *indent, const char *field, const char *fmt, ...) | 114 static void dmC64ImageDumpLine(FILE *fh, const char *indent, const char *field, const char *fmt, ...) |
115 { | 115 { |
116 va_list ap; | 116 va_list ap; |
117 | 117 |
118 fputs(indent, fh); | 118 fputs(indent, fh); |