diff options
author | Guy Harris <guy@alum.mit.edu> | 2017-09-30 16:08:41 -0700 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2017-09-30 16:08:41 -0700 |
commit | c67d07b3c115c0d9f10a1fb1cdcfc1e195c64091 (patch) | |
tree | 0432d48e84540425d0ab7097fb63a5a9860eab9d /portability.h | |
parent | 2c964209e1c17adeff27efa172bea9e3f38d54b0 (diff) |
Get rid of setbuf() macro; use setvbuf() instead.
Diffstat (limited to 'portability.h')
-rw-r--r-- | portability.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/portability.h b/portability.h index 3531fdca..0757871e 100644 --- a/portability.h +++ b/portability.h @@ -97,15 +97,13 @@ extern "C" { #ifndef strdup #define strdup _strdup #endif - #define setbuf(x, y) \ - setvbuf((x), (y), _IONBF, 0) + + #include <stdio.h> /* * Make fopen() call a wrapper that calls fopen_s(), to squelch * warnings. */ - #include <stdio.h> - #define fopen(x, y) \ fopen_safe((x), (y)) FILE *fopen_safe(const char *filename, const char* mode); |