OSDN Git Service

Mark functions as GNU extensions
authorPeter S. Mazinger <ps.m@gmx.net>
Mon, 13 Feb 2006 08:52:46 +0000 (08:52 -0000)
committerPeter S. Mazinger <ps.m@gmx.net>
Mon, 13 Feb 2006 08:52:46 +0000 (08:52 -0000)
libc/stdio/asprintf.c
libc/stdio/dprintf.c
libc/stdio/fcloseall.c
libc/stdio/fmemopen.c
libc/stdio/fopencookie.c
libc/stdio/getdelim.c
libc/stdio/getline.c
libc/stdio/open_memstream.c
libc/stdio/vasprintf.c
libc/stdio/vdprintf.c

index f5ccfcc..3f19925 100644 (file)
@@ -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
index 6e24374..a8b2704 100644 (file)
@@ -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
index 5be9b55..7d24225 100644 (file)
@@ -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
index 7f6021c..a78d56e 100644 (file)
@@ -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
index d754deb..0b7ed84 100644 (file)
@@ -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
index a00cc1e..21c86f4 100644 (file)
@@ -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
index aef3de9..22b67b8 100644 (file)
@@ -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
index 5ba09ea..25c2f9f 100644 (file)
@@ -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
index f355b22..7a34f68 100644 (file)
@@ -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
index 34aa476..b26a925 100644 (file)
@@ -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