comparison src/dmtext.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 92b93a12c014
comparison
equal deleted inserted replaced
2384:36edd316184a 2385:5ffc48a0bebe
67 const BOOL condensed, const int mode, int xc, int yc, const char *str); 67 const BOOL condensed, const int mode, int xc, int yc, const char *str);
68 void dmDrawBMTextVA(SDL_Surface *screen, const DMBitmapFont *font, 68 void dmDrawBMTextVA(SDL_Surface *screen, const DMBitmapFont *font,
69 const BOOL condensed, const int mode, const int xc, const int yc, const char *fmt, va_list ap); 69 const BOOL condensed, const int mode, const int xc, const int yc, const char *fmt, va_list ap);
70 void dmDrawBMText(SDL_Surface *screen, const DMBitmapFont *font, 70 void dmDrawBMText(SDL_Surface *screen, const DMBitmapFont *font,
71 const BOOL condensed, const int mode, const int xc, const int yc, const char *fmt, ...) 71 const BOOL condensed, const int mode, const int xc, const int yc, const char *fmt, ...)
72 __attribute__ ((__format__ (__printf__, 7, 8))); 72 DM_ATTR_PRINTF_FMT(7, 8);
73 73
74 74
75 static inline void dmInitializeGetBMGlyphSurface(SDL_Surface *surf, DMBitmapFont *font) 75 static inline void dmInitializeGetBMGlyphSurface(SDL_Surface *surf, DMBitmapFont *font)
76 { 76 {
77 memcpy(surf, font->glyphs, sizeof(SDL_Surface)); 77 memcpy(surf, font->glyphs, sizeof(SDL_Surface));