Message ID | 210267905.11859124.1484004324939.JavaMail.zimbra@redhat.com |
---|---|
State | New |
Headers | show |
On Jan 9 18:25, Jeff Johnston wrote: > Patch attached. I will check in if no objections. It was only used for > debugging the _REENT_CHECK macros so I renamed it _REENT_CHECK_DEBUG. Looks good to me. Thanks, Corinna -- Corinna Vinschen Cygwin Maintainer Red Hat
Ok, done. -- Jeff J. ----- Original Message ----- > On Jan 9 18:25, Jeff Johnston wrote: > > Patch attached. I will check in if no objections. It was only used for > > debugging the _REENT_CHECK macros so I renamed it _REENT_CHECK_DEBUG. > > Looks good to me. > > > Thanks, > Corinna > > -- > Corinna Vinschen > Cygwin Maintainer > Red Hat >
From 81b770557b3390a4cac631a9662e56a553b97305 Mon Sep 17 00:00:00 2001 From: Jeff Johnston <jjohnstn@redhat.com> Date: Mon, 9 Jan 2017 18:21:19 -0500 Subject: [PATCH] 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 --- newlib/libc/include/sys/reent.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/newlib/libc/include/sys/reent.h b/newlib/libc/include/sys/reent.h index e1ed8b4..8b67889 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 -- 2.5.5