Browse Source

Mark functions as GNU extensions

Peter S. Mazinger 19 years ago
parent
commit
4cca91e9f0

+ 4 - 0
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

+ 4 - 0
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

+ 4 - 0
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

+ 4 - 0
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

+ 4 - 0
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

+ 4 - 0
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

+ 4 - 0
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

+ 4 - 0
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

+ 4 - 0
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

+ 4 - 0
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