diff options
author | Peter S. Mazinger <ps.m@gmx.net> | 2006-02-13 08:52:46 +0000 |
---|---|---|
committer | Peter S. Mazinger <ps.m@gmx.net> | 2006-02-13 08:52:46 +0000 |
commit | 4cca91e9f0b67a157292bbd3763418f93bb1db6d (patch) | |
tree | 6804282a474b5611c820a1dbd95d3e50107acdf2 /libc/stdio | |
parent | 49907ee1c53861b8692709e1b199f5a5442adf67 (diff) |
Mark functions as GNU extensions
Diffstat (limited to 'libc/stdio')
-rw-r--r-- | libc/stdio/asprintf.c | 4 | ||||
-rw-r--r-- | libc/stdio/dprintf.c | 4 | ||||
-rw-r--r-- | libc/stdio/fcloseall.c | 4 | ||||
-rw-r--r-- | libc/stdio/fmemopen.c | 4 | ||||
-rw-r--r-- | libc/stdio/fopencookie.c | 4 | ||||
-rw-r--r-- | libc/stdio/getdelim.c | 4 | ||||
-rw-r--r-- | libc/stdio/getline.c | 4 | ||||
-rw-r--r-- | libc/stdio/open_memstream.c | 4 | ||||
-rw-r--r-- | libc/stdio/vasprintf.c | 4 | ||||
-rw-r--r-- | libc/stdio/vdprintf.c | 4 |
10 files changed, 40 insertions, 0 deletions
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 <features.h> + +#ifdef __USE_GNU #include "_stdio.h" #include <stdarg.h> @@ -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 <features.h> + +#ifdef __USE_GNU #include "_stdio.h" #include <stdarg.h> @@ -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 <features.h> + +#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 <features.h> + +#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 <features.h> + +#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 <features.h> + +#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 <features.h> + +#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 <features.h> + +#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 <features.h> + +#ifdef __USE_GNU #include "_stdio.h" #include <stdarg.h> #include <bits/uClibc_va_copy.h> @@ -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 <features.h> + +#ifdef __USE_GNU #include "_stdio.h" #include <stdarg.h> @@ -65,3 +68,4 @@ int vdprintf(int filedes, const char * __restrict format, va_list arg) return rv; } libc_hidden_def(vdprintf) +#endif |