diff --git a/reactos/lib/sdk/crt/printf/streamout.c b/reactos/lib/sdk/crt/printf/streamout.c index 69696406a80..c771443b1c9 100644 --- a/reactos/lib/sdk/crt/printf/streamout.c +++ b/reactos/lib/sdk/crt/printf/streamout.c @@ -14,12 +14,17 @@ #include #ifdef _UNICODE -#define streamout wstreamout -#define format_float format_floatw -#define _flsbuf _flswbuf +# define streamout wstreamout +# define format_float format_floatw +# define _flsbuf _flswbuf int __cdecl _flswbuf(int ch, FILE *stream); #endif +#ifdef _LIBCNT_ +# undef _flsbuf +# define _flsbuf(chr, stream) _TEOF +#endif + #define MB_CUR_MAX 10 #define BUFFER_SIZE (32 + 17) @@ -69,11 +74,6 @@ enum (flags & FLAG_LONGDOUBLE) ? va_arg(argptr, long double) : \ va_arg(argptr, double) -#ifdef _LIBCNT_ -# undef _flsbuf -# define _flsbuf(chr, stream) _TEOF -#endif - #define get_exp(f) floor(f == 0 ? 0 : (f >= 0 ? log10(f) : log10(-f))) #define round(x) floor((x) + 0.5)