From a2f1155cf2c41e8a388faba9e1609adc2fea0255 Mon Sep 17 00:00:00 2001 From: Corinna Vinschen Date: Mon, 17 Nov 2003 17:30:30 +0000 Subject: [PATCH] * libc/include/stdlib.h (getprogname): Declare for Cygwin. (setprogname): Ditto. --- newlib/ChangeLog | 5 +++++ newlib/libc/include/stdlib.h | 6 ++++++ 2 files changed, 11 insertions(+) diff --git a/newlib/ChangeLog b/newlib/ChangeLog index 4bf935d4a..23eb25350 100644 --- a/newlib/ChangeLog +++ b/newlib/ChangeLog @@ -1,3 +1,8 @@ +2003-11-17 Corinna Vinschen + + * libc/include/stdlib.h (getprogname): Declare for Cygwin. + (setprogname): Ditto. + 2003-11-10 Jeff Johnston * libc/machine/powerpc/ufix64toa.c (_ufix64to_r): Fix shifts diff --git a/newlib/libc/include/stdlib.h b/newlib/libc/include/stdlib.h index 3f0d00388..5bfe4f712 100644 --- a/newlib/libc/include/stdlib.h +++ b/newlib/libc/include/stdlib.h @@ -66,6 +66,9 @@ _VOID _EXFUN(exit,(int __status) _ATTRIBUTE ((noreturn))); _VOID _EXFUN(free,(_PTR)); char * _EXFUN(getenv,(const char *__string)); char * _EXFUN(_getenv_r,(struct _reent *, const char *__string)); +#ifdef __CYGWIN__ +const char *_EXFUN(getprogname,(void)); +#endif char * _EXFUN(_findenv,(_CONST char *, int *)); char * _EXFUN(_findenv_r,(struct _reent *, _CONST char *, int *)); long _EXFUN(labs,(long)); @@ -90,6 +93,9 @@ char * _EXFUN(mktemp,(char *)); _VOID _EXFUN(qsort,(_PTR __base, size_t __nmemb, size_t __size, int(*_compar)(const _PTR, const _PTR))); int _EXFUN(rand,(_VOID)); _PTR _EXFUN(realloc,(_PTR __r, size_t __size)); +#ifdef __CYGWIN__ +void _EXFUN(setprogname,(const char *)); +#endif _VOID _EXFUN(srand,(unsigned __seed)); double _EXFUN(strtod,(const char *__n, char **__end_PTR)); double _EXFUN(_strtod_r,(struct _reent *,const char *__n, char **__end_PTR)); -- 2.43.5