Index: newlib/libc/include/sys/reent.h =================================================================== RCS file: /var/cvsroot/src-cvs/src/newlib/libc/include/sys/reent.h,v retrieving revision 1.34 diff -u -p -r1.34 reent.h --- newlib/libc/include/sys/reent.h 8 Feb 2005 01:33:16 -0000 1.34 +++ newlib/libc/include/sys/reent.h 20 Sep 2006 21:47:43 -0000 @@ -459,8 +459,9 @@ struct _reent /* Only built the assert() calls if we are built with debugging. */ #if DEBUG #include +#define __reent_assert(x) assert(x) #else -#define assert(x) ((void)0) +#define __reent_assert(x) ((void)0) #endif /* Generic _REENT check macro. */ @@ -468,7 +469,7 @@ struct _reent struct _reent *_r = (var); \ if (_r->what == NULL) { \ _r->what = (type)malloc(size); \ - assert(_r->what); \ + __reent_assert(_r->what); \ init; \ } \ } while (0)