aboutsummaryrefslogtreecommitdiff
path: root/stdlib
diff options
context:
space:
mode:
authorJohn David Anglin <danglin@gcc.gnu.org>2024-07-19 10:10:17 -0400
committerJohn David Anglin <danglin@gcc.gnu.org>2024-07-19 10:10:17 -0400
commit8cfa4ecff21adf226984f135aa576dd8063bbba3 (patch)
tree1c624821f2207a588a7316ba6a4e297845a9e416 /stdlib
parent91eb62d63887a959e43aafb6fc022a87614dc7c9 (diff)
downloadglibc-8cfa4ecff21adf226984f135aa576dd8063bbba3.tar.xz
glibc-8cfa4ecff21adf226984f135aa576dd8063bbba3.zip
Fix usage of _STACK_GROWS_DOWN and _STACK_GROWS_UP defines [BZ 31989]
Signed-off-by: John David Anglin <dave.anglin@bell.net> Reviewed-By: Andreas K. Hüttel <dilfridge@gentoo.org>
Diffstat (limited to 'stdlib')
-rw-r--r--stdlib/tst-swapcontext2.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/stdlib/tst-swapcontext2.c b/stdlib/tst-swapcontext2.c
index f679755649..a9c1dc827c 100644
--- a/stdlib/tst-swapcontext2.c
+++ b/stdlib/tst-swapcontext2.c
@@ -85,7 +85,7 @@ do_test (void)
{
/* ____longjmp_chk has */
#if 0
-#ifdef _STACK_GROWS_DOWN
+#if _STACK_GROWS_DOWN
#define called_from(this, saved) ((this) < (saved))
#else
#define called_from(this, saved) ((this) > (saved))
@@ -98,7 +98,7 @@ do_test (void)
/* Arrange stacks for uctx_func1 and uctx_func2 so that called_from
is true when setjmp is called from uctx_func1 and longjmp is called
from uctx_func2. */
-#ifdef _STACK_GROWS_DOWN
+#if _STACK_GROWS_DOWN
# define UCTX_FUNC1_STACK 1
# define UCTX_FUNC2_STACK 0
#else