From: Rusty Russell Date: Tue, 27 Mar 2012 04:08:13 +0000 (+1030) Subject: tap: assume variadic macros. X-Git-Url: http://git.ozlabs.org/?p=ccan;a=commitdiff_plain;h=35601768f33c339468b54387ab77c6dbf8ad803b tap: assume variadic macros. The Sun C compiler has them, but fails this overzealous check. --- diff --git a/ccan/tap/tap.h b/ccan/tap/tap.h index 06978e29..5b21ff75 100644 --- a/ccan/tap/tap.h +++ b/ccan/tap/tap.h @@ -42,10 +42,6 @@ */ void plan_tests(unsigned int tests); -#if (!defined(__STDC_VERSION__) || __STDC_VERSION__ < 199901L) && !defined(__GNUC__) -# error "Needs gcc or C99 compiler for variadic macros." -#else - /** * ok1 - Simple conditional test * @e: the expression which we expect to be true. @@ -252,5 +248,4 @@ void plan_skip_all(const char *reason); */ void (*tap_fail_callback)(void); -#endif /* C99 or gcc */ #endif /* CCAN_TAP_H */