From 4cca91e9f0b67a157292bbd3763418f93bb1db6d Mon Sep 17 00:00:00 2001 From: "Peter S. Mazinger" Date: Mon, 13 Feb 2006 08:52:46 +0000 Subject: Mark functions as GNU extensions --- libc/stdio/asprintf.c | 4 ++++ libc/stdio/dprintf.c | 4 ++++ libc/stdio/fcloseall.c | 4 ++++ libc/stdio/fmemopen.c | 4 ++++ libc/stdio/fopencookie.c | 4 ++++ libc/stdio/getdelim.c | 4 ++++ libc/stdio/getline.c | 4 ++++ libc/stdio/open_memstream.c | 4 ++++ libc/stdio/vasprintf.c | 4 ++++ libc/stdio/vdprintf.c | 4 ++++ 10 files changed, 40 insertions(+) diff --git a/libc/stdio/asprintf.c b/libc/stdio/asprintf.c index f5ccfcc7c..3f1992559 100644 --- a/libc/stdio/asprintf.c +++ b/libc/stdio/asprintf.c @@ -5,6 +5,9 @@ * Dedicated to Toni. See uClibc/DEDICATION.mjn3 for details. */ +#include + +#ifdef __USE_GNU #include "_stdio.h" #include @@ -30,3 +33,4 @@ int asprintf(char **__restrict buf, const char * __restrict format, ...) libc_hidden_def(asprintf) #endif +#endif diff --git a/libc/stdio/dprintf.c b/libc/stdio/dprintf.c index 6e24374cd..a8b2704b2 100644 --- a/libc/stdio/dprintf.c +++ b/libc/stdio/dprintf.c @@ -5,6 +5,9 @@ * Dedicated to Toni. See uClibc/DEDICATION.mjn3 for details. */ +#include + +#ifdef __USE_GNU #include "_stdio.h" #include @@ -21,3 +24,4 @@ int dprintf(int filedes, const char * __restrict format, ...) return rv; } +#endif diff --git a/libc/stdio/fcloseall.c b/libc/stdio/fcloseall.c index 5be9b553e..7d2422562 100644 --- a/libc/stdio/fcloseall.c +++ b/libc/stdio/fcloseall.c @@ -5,6 +5,9 @@ * Dedicated to Toni. See uClibc/DEDICATION.mjn3 for details. */ +#include + +#ifdef __USE_GNU #include "_stdio.h" libc_hidden_proto(fclose) @@ -40,3 +43,4 @@ int fcloseall (void) #endif } +#endif diff --git a/libc/stdio/fmemopen.c b/libc/stdio/fmemopen.c index 7f6021ca4..a78d56efc 100644 --- a/libc/stdio/fmemopen.c +++ b/libc/stdio/fmemopen.c @@ -5,6 +5,9 @@ * Dedicated to Toni. See uClibc/DEDICATION.mjn3 for details. */ +#include + +#ifdef __USE_GNU #include "_stdio.h" libc_hidden_proto(memcpy) @@ -177,3 +180,4 @@ FILE *fmemopen(void *s, size_t len, const char *modes) return NULL; } +#endif diff --git a/libc/stdio/fopencookie.c b/libc/stdio/fopencookie.c index d754deba5..0b7ed84b1 100644 --- a/libc/stdio/fopencookie.c +++ b/libc/stdio/fopencookie.c @@ -5,6 +5,9 @@ * Dedicated to Toni. See uClibc/DEDICATION.mjn3 for details. */ +#include + +#ifdef __USE_GNU #include "_stdio.h" #ifndef __UCLIBC_HAS_GLIBC_CUSTOM_STREAMS__ @@ -61,3 +64,4 @@ FILE *_fopencookie(void * __restrict cookie, const char * __restrict mode, #ifndef __BCC__ libc_hidden_def(fopencookie) #endif +#endif diff --git a/libc/stdio/getdelim.c b/libc/stdio/getdelim.c index a00cc1e6f..21c86f400 100644 --- a/libc/stdio/getdelim.c +++ b/libc/stdio/getdelim.c @@ -5,6 +5,9 @@ * Dedicated to Toni. See uClibc/DEDICATION.mjn3 for details. */ +#include + +#ifdef __USE_GNU #include "_stdio.h" libc_hidden_proto(getdelim) @@ -78,3 +81,4 @@ ssize_t getdelim(char **__restrict lineptr, size_t *__restrict n, return pos; } libc_hidden_def(getdelim) +#endif diff --git a/libc/stdio/getline.c b/libc/stdio/getline.c index aef3de944..22b67b831 100644 --- a/libc/stdio/getline.c +++ b/libc/stdio/getline.c @@ -5,6 +5,9 @@ * Dedicated to Toni. See uClibc/DEDICATION.mjn3 for details. */ +#include + +#ifdef __USE_GNU #include "_stdio.h" libc_hidden_proto(getline) @@ -17,3 +20,4 @@ ssize_t getline(char **__restrict lineptr, size_t *__restrict n, return getdelim(lineptr, n, '\n', stream); } libc_hidden_def(getline) +#endif diff --git a/libc/stdio/open_memstream.c b/libc/stdio/open_memstream.c index 5ba09ea7c..25c2f9f61 100644 --- a/libc/stdio/open_memstream.c +++ b/libc/stdio/open_memstream.c @@ -5,6 +5,9 @@ * Dedicated to Toni. See uClibc/DEDICATION.mjn3 for details. */ +#include + +#ifdef __USE_GNU #include "_stdio.h" libc_hidden_proto(memcpy) @@ -166,3 +169,4 @@ FILE *open_memstream(char **__restrict bufloc, size_t *__restrict sizeloc) return NULL; } libc_hidden_def(open_memstream) +#endif diff --git a/libc/stdio/vasprintf.c b/libc/stdio/vasprintf.c index f355b227f..7a34f6870 100644 --- a/libc/stdio/vasprintf.c +++ b/libc/stdio/vasprintf.c @@ -5,6 +5,9 @@ * Dedicated to Toni. See uClibc/DEDICATION.mjn3 for details. */ +#include + +#ifdef __USE_GNU #include "_stdio.h" #include #include @@ -85,3 +88,4 @@ int vasprintf(char **__restrict buf, const char * __restrict format, libc_hidden_def(vasprintf) #endif +#endif diff --git a/libc/stdio/vdprintf.c b/libc/stdio/vdprintf.c index 34aa47697..b26a925bc 100644 --- a/libc/stdio/vdprintf.c +++ b/libc/stdio/vdprintf.c @@ -5,6 +5,9 @@ * Dedicated to Toni. See uClibc/DEDICATION.mjn3 for details. */ +#include + +#ifdef __USE_GNU #include "_stdio.h" #include @@ -65,3 +68,4 @@ int vdprintf(int filedes, const char * __restrict format, va_list arg) return rv; } libc_hidden_def(vdprintf) +#endif -- cgit v1.2.3