From 0b68bdaf3034bd7e39025b899e39ccfed4cc510d Mon Sep 17 00:00:00 2001 From: Timo Kreuzer Date: Tue, 11 Jan 2011 12:17:46 +0000 Subject: [PATCH] [CRT] Improve code readability a bit svn path=/trunk/; revision=50354 --- reactos/lib/sdk/crt/printf/streamout.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) 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)