From 7aa9c2486c2d85a8de6204ab3734f457d450cdb6 Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Sat, 19 Sep 2009 02:09:48 +0200 Subject: remove a few more empty #if/#endif pairs Signed-off-by: Denys Vlasenko --- libc/stdio/fseeko.c | 3 --- libc/stdio/vasprintf.c | 4 ---- libc/stdio/vdprintf.c | 6 ++---- libc/stdio/vsnprintf.c | 3 --- 4 files changed, 2 insertions(+), 14 deletions(-) (limited to 'libc/stdio') diff --git a/libc/stdio/fseeko.c b/libc/stdio/fseeko.c index 5f3bbbb98..3caf1ac79 100644 --- a/libc/stdio/fseeko.c +++ b/libc/stdio/fseeko.c @@ -16,9 +16,6 @@ # define OFFSET_TYPE long int #endif -#ifdef __UCLIBC_HAS_LFS__ -#endif - int FSEEK(register FILE *stream, OFFSET_TYPE offset, int whence) { #if defined(__UCLIBC_HAS_LFS__) && !defined(__DO_LARGEFILE) diff --git a/libc/stdio/vasprintf.c b/libc/stdio/vasprintf.c index 175c497a5..a901ee815 100644 --- a/libc/stdio/vasprintf.c +++ b/libc/stdio/vasprintf.c @@ -22,10 +22,6 @@ #warning Skipping vasprintf since no vsnprintf! #else -#ifdef __UCLIBC_HAS_GLIBC_CUSTOM_STREAMS__ -#else -#endif - int vasprintf(char **__restrict buf, const char * __restrict format, va_list arg) { diff --git a/libc/stdio/vdprintf.c b/libc/stdio/vdprintf.c index 8e9926ff0..e3405e411 100644 --- a/libc/stdio/vdprintf.c +++ b/libc/stdio/vdprintf.c @@ -11,8 +11,6 @@ #include "_stdio.h" #include -#ifdef __USE_OLD_VFPRINTF__ -#endif int vdprintf(int filedes, const char * __restrict format, va_list arg) { @@ -42,10 +40,10 @@ int vdprintf(int filedes, const char * __restrict format, va_list arg) #ifdef __UCLIBC_HAS_WCHAR__ f.__ungot_width[0] = 0; -#endif /* __UCLIBC_HAS_WCHAR__ */ +#endif #ifdef __STDIO_MBSTATE __INIT_MBSTATE(&(f.__state)); -#endif /* __STDIO_MBSTATE */ +#endif /* _vfprintf_internal doesn't do any locking, locking init is here * only because of fflush_unlocked. TODO? */ diff --git a/libc/stdio/vsnprintf.c b/libc/stdio/vsnprintf.c index 7eb91eeff..07cff3410 100644 --- a/libc/stdio/vsnprintf.c +++ b/libc/stdio/vsnprintf.c @@ -9,9 +9,6 @@ #include -#ifdef __USE_OLD_VFPRINTF__ -#endif - #ifdef __UCLIBC_MJN3_ONLY__ #warning WISHLIST: Implement vsnprintf for non-buffered and no custom stream case. #endif /* __UCLIBC_MJN3_ONLY__ */ -- cgit v1.2.3