diff options
Diffstat (limited to 'newlib/libc/stdlib')
-rw-r--r-- | newlib/libc/stdlib/__exp10.c | 1 | ||||
-rw-r--r-- | newlib/libc/stdlib/__ten_mu.c | 1 | ||||
-rw-r--r-- | newlib/libc/stdlib/ldtoa.c | 3 | ||||
-rw-r--r-- | newlib/libc/stdlib/std.h | 2 | ||||
-rw-r--r-- | newlib/libc/stdlib/system.c | 25 |
5 files changed, 17 insertions, 15 deletions
diff --git a/newlib/libc/stdlib/__exp10.c b/newlib/libc/stdlib/__exp10.c index 967362347..4e368b830 100644 --- a/newlib/libc/stdlib/__exp10.c +++ b/newlib/libc/stdlib/__exp10.c @@ -3,6 +3,7 @@ */ #include <_ansi.h> +#include "std.h" double _DEFUN (__exp10, (x), diff --git a/newlib/libc/stdlib/__ten_mu.c b/newlib/libc/stdlib/__ten_mu.c index 439c226e1..637197be2 100644 --- a/newlib/libc/stdlib/__ten_mu.c +++ b/newlib/libc/stdlib/__ten_mu.c @@ -6,6 +6,7 @@ */ #include <_ansi.h> +#include "std.h" int _DEFUN (__ten_mul, (acc, digit), diff --git a/newlib/libc/stdlib/ldtoa.c b/newlib/libc/stdlib/ldtoa.c index 5c2972593..ab27e4718 100644 --- a/newlib/libc/stdlib/ldtoa.c +++ b/newlib/libc/stdlib/ldtoa.c @@ -719,8 +719,7 @@ return(0); /* Return nonzero if internal format number is infinite. */ static int -eiisinf (x) - unsigned short x[]; +eiisinf (unsigned short x[]) { #ifdef NANS diff --git a/newlib/libc/stdlib/std.h b/newlib/libc/stdlib/std.h index 287503eac..b20820be4 100644 --- a/newlib/libc/stdlib/std.h +++ b/newlib/libc/stdlib/std.h @@ -25,7 +25,7 @@ #ifdef _HAVE_STDC int __ten_mul(double *acc, int digit); double __adjust(struct _reent *ptr, double *acc, int dexp, int sign); -const double __exp10(unsigned x); +double __exp10(unsigned x); #else int __ten_mul(); double __adjust(); diff --git a/newlib/libc/stdlib/system.c b/newlib/libc/stdlib/system.c index 0b5d9a149..135a9d05b 100644 --- a/newlib/libc/stdlib/system.c +++ b/newlib/libc/stdlib/system.c @@ -53,6 +53,7 @@ Supporting OS subroutines required: <<_exit>>, <<_execve>>, <<_fork_r>>, <<_wait_r>>. */ +#include <_ansi.h> #include <errno.h> #include <stddef.h> #include <stdlib.h> @@ -61,13 +62,13 @@ Supporting OS subroutines required: <<_exit>>, <<_execve>>, <<_fork_r>>, #include <reent.h> #if defined (unix) || defined (__CYGWIN__) -static int do_system (); +static int _EXFUN(do_system, (struct _reent *ptr _AND _CONST char *s)); #endif int -_system_r (ptr, s) - struct _reent *ptr; - _CONST char *s; +_DEFUN(_system_r, (ptr, s), + struct _reent *ptr _AND + _CONST char *s) { #if defined(HAVE_SYSTEM) return _system (s); @@ -101,8 +102,8 @@ _system_r (ptr, s) #ifndef _REENT_ONLY int -system (s) - _CONST char *s; +_DEFUN(system, (s), + _CONST char *s) { return _system_r (_REENT, s); } @@ -118,9 +119,9 @@ extern char **environ; static char ***p_environ = &environ; static int -do_system (ptr, s) - struct _reent *ptr; - _CONST char *s; +_DEFUN(do_system, (ptr, s), + struct _reent *ptr _AND + _CONST char *s) { char *argv[4]; int pid, status; @@ -150,9 +151,9 @@ do_system (ptr, s) #if defined (__CYGWIN__) static int -do_system (ptr, s) - struct _reent *ptr; - _CONST char *s; +_DEFUN(do_system, (ptr, s), + struct _reent *ptr _AND + _CONST char *s) { char *argv[4]; int pid, status; |