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_ */