Protect arguments to the putwc and putwchar macros with parens.
This commit is contained in:
parent
4448ddb047
commit
c6cbf33b5a
@ -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_ */
|
||||
|
Loading…
x
Reference in New Issue
Block a user