X-Git-Url: http://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=ccan%2Ftap%2Ftap.h;h=5b21ff756a89a9dd64c2caf61f2899fe65e5e272;hp=2c309740f9286e8d6d72c514f656ff799025524a;hb=6abc867fce8c3eba40eb26092d31e34b47dd9165;hpb=c39bd505849acdf77744e24b5db7263003911c08 diff --git a/ccan/tap/tap.h b/ccan/tap/tap.h index 2c309740..5b21ff75 100644 --- a/ccan/tap/tap.h +++ b/ccan/tap/tap.h @@ -1,3 +1,5 @@ +#ifndef CCAN_TAP_H +#define CCAN_TAP_H /*- * Copyright (c) 2004 Nik Clayton * All rights reserved. @@ -40,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. @@ -89,7 +87,7 @@ void plan_tests(unsigned int tests); * int x = somefunc(); * if (x > 0) * pass("somefunc() returned a valid value"); - * else + * else * fail("somefunc() returned an invalid value"); */ # define pass(...) ok(1, __VA_ARGS__) @@ -167,7 +165,7 @@ void skip(unsigned int n, const char *fmt, ...) PRINTF_FMT(2, 3); * This way, should a test start to succeed unexpectedly, tools like prove(1) * will indicate this and you can move the test out of the todo block. This * is much more useful than simply commenting out (or '#if 0') the tests. - * + * * From the Test::More documentation: * If it's something the programmer hasn't done yet, use TODO. This is for * any code you haven't written yet, or bugs you have yet to fix, but want to @@ -250,4 +248,4 @@ void plan_skip_all(const char *reason); */ void (*tap_fail_callback)(void); -#endif /* C99 or gcc */ +#endif /* CCAN_TAP_H */