]> git.ozlabs.org Git - ccan/commitdiff
tap: assume variadic macros.
authorRusty Russell <rusty@rustcorp.com.au>
Tue, 27 Mar 2012 04:08:13 +0000 (14:38 +1030)
committerRusty Russell <rusty@rustcorp.com.au>
Tue, 27 Mar 2012 04:08:13 +0000 (14:38 +1030)
The Sun C compiler has them, but fails this overzealous check.

ccan/tap/tap.h

index 06978e29c33aec3ba7b99bb96a868954fe7c2b28..5b21ff756a89a9dd64c2caf61f2899fe65e5e272 100644 (file)
  */
 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 */