From 1eb4d002f21354216c2fc7df973c7ca671e2af34 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Mon, 26 Dec 2022 12:56:33 -0500 Subject: [PATCH] Try to fix the build with msvc --- test/api/test-paint.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/api/test-paint.c b/test/api/test-paint.c index acbdeedf1..df44a8a1a 100644 --- a/test/api/test-paint.c +++ b/test/api/test-paint.c @@ -40,9 +40,11 @@ typedef struct { GString *string; } paint_data_t; +#ifndef _MSC_VER static void print (paint_data_t *data, const char *format, ...) __attribute__((format (printf, 2, 3))); +#endif -void +static void print (paint_data_t *data, const char *format, ...)