]> git.ozlabs.org Git - ccan/blobdiff - ccan/tap/tap.h
*: Fix build with recent gcc/binutils
[ccan] / ccan / tap / tap.h
index 06978e29c33aec3ba7b99bb96a868954fe7c2b28..22c245d53705ff7f48b273e568984dc5bf3626f2 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.
@@ -250,7 +246,6 @@ void plan_skip_all(const char *reason);
  *
  * This can be used to ease debugging, or exit on the first failure.
  */
-void (*tap_fail_callback)(void);
+extern void (*tap_fail_callback)(void);
 
-#endif /* C99 or gcc */
 #endif /* CCAN_TAP_H */