diff options
author | Jeff Johnston <jjohnstn@redhat.com> | 2017-01-09 18:21:19 -0500 |
---|---|---|
committer | Jeff Johnston <jjohnstn@redhat.com> | 2017-01-10 12:19:03 -0500 |
commit | e0477b4a0ba2b842d4f81350f7fa9a03b1f3d27b (patch) | |
tree | 36fa925a1278b73ccffa6bd186e0aa789ab4d935 /newlib | |
parent | 171046da733f1f5cdbbf51319f45816e2315dfc7 (diff) | |
download | cygnal-e0477b4a0ba2b842d4f81350f7fa9a03b1f3d27b.tar.gz cygnal-e0477b4a0ba2b842d4f81350f7fa9a03b1f3d27b.tar.bz2 cygnal-e0477b4a0ba2b842d4f81350f7fa9a03b1f3d27b.zip |
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
Diffstat (limited to 'newlib')
-rw-r--r-- | newlib/libc/include/sys/reent.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/newlib/libc/include/sys/reent.h b/newlib/libc/include/sys/reent.h index e1ed8b421..8b67889ac 100644 --- a/newlib/libc/include/sys/reent.h +++ b/newlib/libc/include/sys/reent.h @@ -454,8 +454,8 @@ extern const struct __sFILE_fake __sf_fake_stderr; (var)->_stderr = (__FILE *)&__sf_fake_stderr; \ } -/* Only built the assert() calls if we are built with debugging. */ -#if DEBUG +/* Only add assert() calls if we are specified to debug. */ +#ifdef _REENT_CHECK_DEBUG #include <assert.h> #define __reent_assert(x) assert(x) #else |