Skip to content

Commit b2e05e0

Browse files
committed
stdlib.h: define __itoa/__utoa while building newlib
This avoids a `__utoa undefined' warning when building newlib for Cygwin. We still need to export the symbols for backward compatibility. Signed-off-by: Corinna Vinschen <[email protected]>
1 parent 8d4ea8b commit b2e05e0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

newlib/libc/include/stdlib.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ char * ecvtbuf (double, int, int*, int*, char *);
221221
char * fcvtbuf (double, int, int*, int*, char *);
222222
char * ecvtf (float,int,int *,int *);
223223
#endif
224-
#ifndef __CYGWIN__
224+
#if !defined (__CYGWIN__) || defined (_LIBC)
225225
char * __itoa (int, char *, int);
226226
char * __utoa (unsigned, char *, int);
227227
# if __MISC_VISIBLE

0 commit comments

Comments
 (0)