diff options
author | tjr <tjr@FreeBSD.org> | 2002-09-12 10:27:48 +0000 |
---|---|---|
committer | tjr <tjr@FreeBSD.org> | 2002-09-12 10:27:48 +0000 |
commit | c6cbf33b5a4d0ab44924ec0e838dc9c847763c6a (patch) | |
tree | 763ce24c5bd0db0c99b954a94f5532bebdb6ef2d /include | |
parent | 4448ddb047996f445ed1e9781599ad483d2f7f89 (diff) | |
download | FreeBSD-src-c6cbf33b5a4d0ab44924ec0e838dc9c847763c6a.zip FreeBSD-src-c6cbf33b5a4d0ab44924ec0e838dc9c847763c6a.tar.gz |
Protect arguments to the putwc and putwchar macros with parens.
Diffstat (limited to 'include')
-rw-r--r-- | include/wchar.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/wchar.h b/include/wchar.h index 89867ac..f0fdb2c 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_ */ |