diff --git a/newlib/ChangeLog b/newlib/ChangeLog index 485dd23db..addfa0354 100644 --- a/newlib/ChangeLog +++ b/newlib/ChangeLog @@ -1,3 +1,8 @@ +2003-09-04 Ben Elliston + + * libc/stdlib/mstats.c[_ELIX_LEVEL]: Fix guards. #ifndef FOO || + FOO >= 2 is invalid; use #if !defined (FOO) || FOO >= 2 instead. + 2003-09-02 Thomas Pfaff * libc/stdlib/atexit.c: Rename _REENT to _GLOBAL_REENT throughout. diff --git a/newlib/libc/stdlib/mstats.c b/newlib/libc/stdlib/mstats.c index 8a587b0b5..2b6c6bc19 100644 --- a/newlib/libc/stdlib/mstats.c +++ b/newlib/libc/stdlib/mstats.c @@ -110,7 +110,7 @@ _DEFUN_VOID (mallinfo) return _mallinfo_r (_REENT); } -#ifndef _ELIX_LEVEL || _ELIX_LEVEL >= 2 +#if !defined (_ELIX_LEVEL) || _ELIX_LEVEL >= 2 void _DEFUN_VOID (malloc_stats) { @@ -129,7 +129,7 @@ _DEFUN (mallopt, (p, v), #endif -#ifndef _ELIX_LEVEL || _ELIX_LEVEL >= 2 +#if !defined (_ELIX_LEVEL) || _ELIX_LEVEL >= 2 /* mstats is now compatibility code. It used to be real, for a previous version of the malloc routines. It now just calls