about summary refs log tree commit diff
path: root/stdlib
diff options
context:
space:
mode:
authorWill Newton <will.newton@linaro.org>2014-04-25 15:48:48 +0100
committerWill Newton <will.newton@linaro.org>2014-05-14 14:11:48 +0100
commit4f02e2b8f94799b4f9e57e922c06c5eeec4272e6 (patch)
treefd2ae566d795ec7c7b1026848162c6d038cb2d3c /stdlib
parent1a84c3d6d4bc43c92b6531b09d732e2e9c750dea (diff)
downloadglibc-4f02e2b8f94799b4f9e57e922c06c5eeec4272e6.tar.gz
glibc-4f02e2b8f94799b4f9e57e922c06c5eeec4272e6.tar.xz
glibc-4f02e2b8f94799b4f9e57e922c06c5eeec4272e6.zip
stdlib/gmp-impl.h: Silence -Wundef warning for USE_STACK_ALLOC
The upstream version of GMP has long removed this conditional
altogether in this commit:

changeset:   5254:88618a4694ac
user:        Kevin Ryde <user42@zip.com.au>
date:        Sun Jun 17 01:37:27 2001 +0200

So just turn the #if into an #ifdef to silence the warning.

ChangeLog:

2014-05-14  Will Newton  <will.newton@linaro.org>

	* stdlib/gmp-impl.h: Test USE_STACK_ALLOC #ifdef
	rather than #if.
Diffstat (limited to 'stdlib')
-rw-r--r--stdlib/gmp-impl.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/stdlib/gmp-impl.h b/stdlib/gmp-impl.h
index 83865dc412..b7da5bd44f 100644
--- a/stdlib/gmp-impl.h
+++ b/stdlib/gmp-impl.h
@@ -47,7 +47,7 @@ along with the GNU MP Library; see the file COPYING.LIB.  If not, see
 #endif
 #endif
 
-#if ! defined (HAVE_ALLOCA) || USE_STACK_ALLOC
+#if ! defined (HAVE_ALLOCA) || defined (USE_STACK_ALLOC)
 #include "stack-alloc.h"
 #else
 #define TMP_DECL(m)