aboutsummaryrefslogtreecommitdiff
path: root/tap
diff options
context:
space:
mode:
authorGravatar Thomas Guyot-Sionnest <dermoth@aei.ca> 2009-01-15 01:03:00 -0500
committerGravatar Thomas Guyot-Sionnest <dermoth@aei.ca> 2009-01-15 01:03:00 -0500
commitf7afa46586645e50498d8b2d0c67884f014dc3a4 (patch)
tree6a17c55299cc217b43cd8a31176129d51c4e4d33 /tap
parentc0989fe7cb87e4dce7dbf2d4c338f3e4646df05a (diff)
downloadmonitoring-plugins-f7afa46586645e50498d8b2d0c67884f014dc3a4.tar.gz
Clean up last commit - remove the __STDC_VERSION__ check in tap.h
HP-UX refuses to compile tap with the check for __STDC_VERSION__ >= 199901L even though it can.
Diffstat (limited to 'tap')
-rw-r--r--tap/tap.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/tap/tap.h b/tap/tap.h
index 346bd915..bd817893 100644
--- a/tap/tap.h
+++ b/tap/tap.h
@@ -47,7 +47,11 @@
skip(n, fmt, ## __VA_ARGS__); \
continue; \
}
-#else /*#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);