X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=tap%2Ftap.h;h=bd817893a1f5ed344e91c524e26ac483821a9a18;hb=b48c2bdd59783197c93cde531e6e8b9747c0a88f;hp=e64f9d5f94d1136169d98f945e5474da26be5891;hpb=2bbf2e6967daa0a9f86874aac409fde245a3bc85;p=nagiosplug.git diff --git a/tap/tap.h b/tap/tap.h index e64f9d5..bd81789 100644 --- a/tap/tap.h +++ b/tap/tap.h @@ -47,7 +47,11 @@ skip(n, fmt, ## __VA_ARGS__); \ continue; \ } -#elif __STDC_VERSION__ >= 199901L /* __GNUC__ */ +#else /* __GNUC__ */ +/* The original tap.h used to test if __STDC_VERSION__ >= 199901L here. This + * doesn't seem to work on HP-UX even though the code compile fine. I'm not + * sure how to add an exception here for HP-UX so I just removed the check + * for now */ # define ok(e, ...) ((e) ? \ _gen_result(1, __func__, __FILE__, __LINE__, \ __VA_ARGS__) : \ @@ -67,9 +71,7 @@ skip(n, __VA_ARGS__); \ continue; \ } -#else /* __STDC_VERSION__ */ -# error "Needs gcc or C99 compiler for variadic macros." -#endif /* __STDC_VERSION__ */ +#endif /* __GNUC__ */ # define skip_end } while(0);