Fix sys/reent.h to remove use of DEBUG flag.
- use of DEBUG flag is non-standard and interferes with other project's using same flag - change to be _REENT_CHECK_DEBUG which means the flag is allowing debugging of _REENT_CHECK macros - use #ifdef instead of #if
This commit is contained in:
parent
171046da73
commit
e0477b4a0b
@ -454,8 +454,8 @@ extern const struct __sFILE_fake __sf_fake_stderr;
|
|||||||
(var)->_stderr = (__FILE *)&__sf_fake_stderr; \
|
(var)->_stderr = (__FILE *)&__sf_fake_stderr; \
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Only built the assert() calls if we are built with debugging. */
|
/* Only add assert() calls if we are specified to debug. */
|
||||||
#if DEBUG
|
#ifdef _REENT_CHECK_DEBUG
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
#define __reent_assert(x) assert(x)
|
#define __reent_assert(x) assert(x)
|
||||||
#else
|
#else
|
||||||
|
Loading…
x
Reference in New Issue
Block a user