X-Git-Url: http://git.efficios.com/?p=babeltrace.git;a=blobdiff_plain;f=tests%2Futils%2Ftap%2Ftap.h;fp=tests%2Futils%2Ftap%2Ftap.h;h=190c4a942b42c10ba1a7684131c5993699e3a41d;hp=764f75dae00469463eb9e2e058e24356e204172b;hb=830153f4e91a4e50e831c2776994fc20ac89970e;hpb=9fdff45c9901bcb0666306dfe377331eda0753cb diff --git a/tests/utils/tap/tap.h b/tests/utils/tap/tap.h index 764f75da..190c4a94 100644 --- a/tests/utils/tap/tap.h +++ b/tests/utils/tap/tap.h @@ -74,21 +74,27 @@ #define skip_end() } while(0); -__attribute__((format(printf, 5, 6))) +#ifdef __MINGW_PRINTF_FORMAT +# define PRINT_FORMAT __MINGW_PRINTF_FORMAT +#else +# define PRINT_FORMAT printf +#endif + +__attribute__((format(PRINT_FORMAT, 5, 6))) unsigned int _gen_result(int, const char *, const char *, unsigned int, const char *, ...); int plan_no_plan(void); int plan_skip_all(const char *); int plan_tests(unsigned int); -__attribute__((format(printf, 1, 2))) +__attribute__((format(PRINT_FORMAT, 1, 2))) unsigned int diag(const char *, ...); void diag_multiline(const char *); -__attribute__((format(printf, 2, 3))) +__attribute__((format(PRINT_FORMAT, 2, 3))) int skip(unsigned int, const char *, ...); -__attribute__((format(printf, 1, 2))) +__attribute__((format(PRINT_FORMAT, 1, 2))) void todo_start(const char *, ...); void todo_end(void);