summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: c0989fe)
raw | patch | inline | side by side (parent: c0989fe)
author | Thomas Guyot-Sionnest <dermoth@aei.ca> | |
Thu, 15 Jan 2009 06:03:00 +0000 (01:03 -0500) | ||
committer | Thomas Guyot-Sionnest <dermoth@aei.ca> | |
Thu, 15 Jan 2009 06:03:00 +0000 (01:03 -0500) |
HP-UX refuses to compile tap with the check for __STDC_VERSION__ >= 199901L
even though it can.
even though it can.
tap/tap.h | patch | blob | history |
diff --git a/tap/tap.h b/tap/tap.h
index 346bd9156c39014ffde71a23a35ad53b419d8ef3..bd817893a1f5ed344e91c524e26ac483821a9a18 100644 (file)
--- a/tap/tap.h
+++ b/tap/tap.h
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__) : \
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);