diff options
author | tjr <tjr@FreeBSD.org> | 2004-03-20 11:45:52 +0000 |
---|---|---|
committer | tjr <tjr@FreeBSD.org> | 2004-03-20 11:45:52 +0000 |
commit | 369227864b96b27ba13dee72d49f4c3b8405fe5e (patch) | |
tree | b7340b0d0842060ffb7cfd50227ef4f46929755d /include | |
parent | 4a21435c7e11c18e2c6f2e838af1e839319cebea (diff) | |
download | FreeBSD-src-369227864b96b27ba13dee72d49f4c3b8405fe5e.zip FreeBSD-src-369227864b96b27ba13dee72d49f4c3b8405fe5e.tar.gz |
Parenthesize function names in masking macros for getc() etc. for the
benefit of obsolete C preprocessors.
Diffstat (limited to 'include')
-rw-r--r-- | include/stdio.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/include/stdio.h b/include/stdio.h index 90428b9..52fb7f7 100644 --- a/include/stdio.h +++ b/include/stdio.h @@ -418,16 +418,16 @@ static __inline int __sputc(int _c, FILE *_p) { extern int __isthreaded; -#define feof(p) (!__isthreaded ? __sfeof(p) : feof(p)) -#define ferror(p) (!__isthreaded ? __sferror(p) : ferror(p)) -#define clearerr(p) (!__isthreaded ? __sclearerr(p) : clearerr(p)) +#define feof(p) (!__isthreaded ? __sfeof(p) : (feof)(p)) +#define ferror(p) (!__isthreaded ? __sferror(p) : (ferror)(p)) +#define clearerr(p) (!__isthreaded ? __sclearerr(p) : (clearerr)(p)) #if __POSIX_VISIBLE -#define fileno(p) (!__isthreaded ? __sfileno(p) : fileno(p)) +#define fileno(p) (!__isthreaded ? __sfileno(p) : (fileno)(p)) #endif -#define getc(fp) (!__isthreaded ? __sgetc(fp) : getc(fp)) -#define putc(x, fp) (!__isthreaded ? __sputc(x, fp) : putc(x, fp)) +#define getc(fp) (!__isthreaded ? __sgetc(fp) : (getc)(fp)) +#define putc(x, fp) (!__isthreaded ? __sputc(x, fp) : (putc)(x, fp)) #define getchar() getc(stdin) #define putchar(x) putc(x, stdout) |