[newlib-cygwin/main] Hide itoa, utoa, __itoa and __utoa in stdlib.h on Cygwin only

Corinna Vinschen corinna@sourceware.org
Wed Jan 31 19:08:25 GMT 2024


https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=31f7cd1e433247015c08d43504f09aa70a94b76b

commit 31f7cd1e433247015c08d43504f09aa70a94b76b
Author:     Christian Franke <christian.franke@t-online.de>
AuthorDate: Mon Jan 22 19:11:20 2024 +0100
Commit:     Corinna Vinschen <corinna@vinschen.de>
CommitDate: Wed Jan 31 20:06:38 2024 +0100

    Hide itoa, utoa, __itoa and __utoa in stdlib.h on Cygwin only
    
    These functions are non-standard and not exported by Cygwin.
    
    Signed-off-by: Christian Franke <christian.franke@t-online.de>

Diff:
---
 newlib/libc/include/stdlib.h | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/newlib/libc/include/stdlib.h b/newlib/libc/include/stdlib.h
index 15b349440e75..fd89f5ba7b28 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);


More information about the Newlib-cvs mailing list