From: Paul Brossier Date: Sun, 14 Aug 2005 01:59:32 +0000 (+0000) Subject: added non c99 alternatives in examples/utils.h (thanks Mo) X-Git-Tag: bzr2git~849 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=a3e24ec490673845170052007673b3956cff651b;p=aubio.git added non c99 alternatives in examples/utils.h (thanks Mo) --- diff --git a/examples/utils.h b/examples/utils.h index f9d94a26..3c48b652 100644 --- a/examples/utils.h +++ b/examples/utils.h @@ -26,9 +26,16 @@ #include #include -#define debug(...) if (verbose) fprintf (stderr, __VA_ARGS__) -#define errmsg(...) fprintf (stderr, __VA_ARGS__) -#define outmsg(...) fprintf (stdout, __VA_ARGS__) +#ifdef HAVE_C99_VARARGS_MACROS +#define debug(...) if (verbose) fprintf (stderr, __VA_ARGS__) +#define errmsg(...) fprintf (stderr, __VA_ARGS__) +#define outmsg(...) fprintf (stdout, __VA_ARGS__) +#else +#define debug(format, args...) if (verbose) fprintf(stderr, format , ##args) +#define errmsg(format, args...) fprintf(stderr, format , ##args) +#define outmsg(format, args...) fprintf(stdout, format , ##args) +#endif + extern int frames; extern int verbose;