From: Will Newton Date: Mon, 17 Mar 2014 12:07:10 +0000 (+0000) Subject: Fix HAVE_RM_CTX -Wundef warnings X-Git-Tag: glibc-2.20~732 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9290130a8de3f30970f741c79dfe8459f798e05f;p=thirdparty%2Fglibc.git Fix HAVE_RM_CTX -Wundef warnings ChangeLog: 2014-03-17 Will Newton * sysdeps/generic/math_private.h: Check whether HAVE_RM_CTX is defined with #ifdef rather than #if. --- diff --git a/ChangeLog b/ChangeLog index 37d34f64442..f6b90d2c860 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,9 @@ 2014-03-17 Will Newton + * sysdeps/generic/math_private.h: Check whether + HAVE_RM_CTX is defined with #ifdef rather + than #if. + * argp/argp-fmtstream.h: Check whether __STRICT_ANSI__ is defined with #ifdef rather than #if. diff --git a/sysdeps/generic/math_private.h b/sysdeps/generic/math_private.h index 9b881a3e768..0ac70e3b1b3 100644 --- a/sysdeps/generic/math_private.h +++ b/sysdeps/generic/math_private.h @@ -551,7 +551,7 @@ default_libc_feupdateenv_test (fenv_t *e, int ex) # define libc_feresetround_noexl libc_fesetenvl #endif -#if HAVE_RM_CTX +#ifdef HAVE_RM_CTX /* Set/Restore Rounding Modes only when necessary. If defined, these functions set/restore floating point state only if the state needed within the lexical block is different from the current state. This saves a lot of time when