From 6b3015b6a61dedd58ca50db7cb60913b3d9c03d2 Mon Sep 17 00:00:00 2001 From: "Tim J. Robbins" Date: Thu, 12 Sep 2002 10:27:48 +0000 Subject: [PATCH] Protect arguments to the putwc and putwchar macros with parens. --- include/wchar.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/wchar.h b/include/wchar.h index 89867ac746c..f0fdb2cb7ae 100644 --- a/include/wchar.h +++ b/include/wchar.h @@ -163,7 +163,7 @@ __END_DECLS #define getwc(fp) fgetwc(fp) #define getwchar() fgetwc(stdin) -#define putwc(wc, fp) fputwc(wc, fp) -#define putwchar(wc) fputwc(wc, stdout) +#define putwc(wc, fp) fputwc((wc), (fp)) +#define putwchar(wc) fputwc((wc), stdout) #endif /* !_WCHAR_H_ */