[priv] also define variadic no-op debug macro
authorPaul Brossier <piem@piem.org>
Sat, 29 Jun 2019 14:45:56 +0000 (16:45 +0200)
committerPaul Brossier <piem@piem.org>
Sat, 29 Jun 2019 14:45:56 +0000 (16:45 +0200)
src/aubio_priv.h

index bf17ed0..8cb6756 100644 (file)
@@ -250,8 +250,12 @@ uint_t aubio_log(sint_t level, const char_t *fmt, ...);
 #define AUBIO_DBG _AUBIO_DBG
 #else
 // disable debug output
+#ifdef HAVE_C99_VARARGS_MACROS
+#define AUBIO_DBG(...)               {}
+#else
 #define AUBIO_DBG(format, args...)   {}
 #endif
+#endif
 
 #define AUBIO_ERROR   AUBIO_ERR