Revision: 2125
http://nagiosplug.svn.sourceforge.net/nagiosplug/?rev=2125&view=rev
Author: dermoth
Date: 2009-01-15 06:06:15 +0000 (Thu, 15 Jan 2009)
Log Message:
-----------
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.
From: Thomas Guyot-Sionnest <[email protected]>
Modified Paths:
--------------
nagiosplug/trunk/tap/tap.h
Modified: nagiosplug/trunk/tap/tap.h
===================================================================
--- nagiosplug/trunk/tap/tap.h 2009-01-14 11:57:15 UTC (rev 2124)
+++ nagiosplug/trunk/tap/tap.h 2009-01-15 06:06:15 UTC (rev 2125)
@@ -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);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
lmpx.com only provides a reader for public news (NNTP) servers. It is not
affiliated with the servers or forums shown here and is not responsible for
the content of articles, which is written by their respective authors.