changeset 901:a225abf5f479 HEAD

If PEDANTIC is defined, don't use (void)(..) with STMT_START/END.
author Timo Sirainen <tss@iki.fi>
date Sat, 04 Jan 2003 19:46:34 +0200
parents 981a359257bb
children 5043e48c022f
files src/lib/macros.h
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/lib/macros.h	Sat Jan 04 19:45:09 2003 +0200
+++ b/src/lib/macros.h	Sat Jan 04 19:46:34 2003 +0200
@@ -71,7 +71,8 @@
    For SunOS they will be wrapped within `if (1)' and `else (void) 0',
    and otherwise within `do' and `while (0)'. */
 #if !(defined (STMT_START) && defined (STMT_END))
-#  if defined (__GNUC__) && !defined (__STRICT_ANSI__) && !defined (__cplusplus)
+#  if defined (__GNUC__) && !defined (__cplusplus) && \
+	!defined (__STRICT_ANSI__) && !defined (PEDANTIC)
 #    define STMT_START (void)(
 #    define STMT_END   )
 #  else