aboutsummaryrefslogtreecommitdiff
path: root/newlib
diff options
context:
space:
mode:
authorChristian Franke <christian.franke@t-online.de>2024-01-22 19:11:20 +0100
committerCorinna Vinschen <corinna@vinschen.de>2024-01-31 20:06:38 +0100
commit31f7cd1e433247015c08d43504f09aa70a94b76b (patch)
tree4257592c6e590400ffdeb8aa812a10dd960fda00 /newlib
parent6252fd0265347032c46c95367895ddb838856bd2 (diff)
downloadnewlib-31f7cd1e433247015c08d43504f09aa70a94b76b.zip
newlib-31f7cd1e433247015c08d43504f09aa70a94b76b.tar.gz
newlib-31f7cd1e433247015c08d43504f09aa70a94b76b.tar.bz2
Hide itoa, utoa, __itoa and __utoa in stdlib.h on Cygwin onlycygwin-3.5.0
These functions are non-standard and not exported by Cygwin. Signed-off-by: Christian Franke <christian.franke@t-online.de>
Diffstat (limited to 'newlib')
-rw-r--r--newlib/libc/include/stdlib.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/newlib/libc/include/stdlib.h b/newlib/libc/include/stdlib.h
index 15b3494..fd89f5b 100644
--- a/newlib/libc/include/stdlib.h
+++ b/newlib/libc/include/stdlib.h
@@ -221,11 +221,13 @@ char * ecvtbuf (double, int, int*, int*, char *);
char * fcvtbuf (double, int, int*, int*, char *);
char * ecvtf (float,int,int *,int *);
#endif
+#ifndef __CYGWIN__
char * __itoa (int, char *, int);
char * __utoa (unsigned, char *, int);
-#if __MISC_VISIBLE
+# if __MISC_VISIBLE
char * itoa (int, char *, int);
char * utoa (unsigned, char *, int);
+# endif
#endif
#if __POSIX_VISIBLE
int rand_r (unsigned *__seed);