fosphor/gl_font: Don't use the format __attribute__ when using MSVC

Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
This commit is contained in:
Sylvain Munaut 2016-05-22 20:42:51 +02:00
parent 1e4598ff34
commit 7b6b9961bc
1 changed files with 7 additions and 1 deletions

View File

@ -30,6 +30,12 @@
* \brief Basic OpenGL font rendering
*/
#ifdef _MSC_VER
# define ATTR_FORMAT(a,b,c)
#else
# define ATTR_FORMAT(a,b,c) __attribute__((format(a,b,c)))
#endif
struct gl_font;
@ -60,7 +66,7 @@ void glf_draw_str(const struct gl_font *glf,
void glf_printf(const struct gl_font *glf,
float x, enum glf_align x_align,
float y, enum glf_align y_align,
const char *fmt, ...) __attribute__((format(printf, 6, 7)));
const char *fmt, ...) ATTR_FORMAT(printf, 6, 7);
void glf_begin(const struct gl_font *glf, float fg_color[3]);
void glf_end(void);