[Nagiosplug-checkins] SF.net SVN: nagiosplug:[2125] nagiosplug/trunk/tap/tap.h

dermoth at users.sourceforge.net dermoth at users.sourceforge.net
Thu Jan 15 07:06:15 CET 2009


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 <dermoth at aei.ca>

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.




More information about the Commits mailing list