]> git.ipfire.org Git - thirdparty/gcc.git/commit
[testsuite] [analyzer] [vxworks] define __STDC_WANT_LIB_EXT1__ to 1
authorAlexandre Oliva <oliva@adacore.com>
Wed, 21 May 2025 09:20:03 +0000 (06:20 -0300)
committerAlexandre Oliva <oliva@gnu.org>
Wed, 21 May 2025 09:20:03 +0000 (06:20 -0300)
commitf3c5e0a2091ddd5cae4d7381a847aac5f546f04c
tree093abe8c5388d8d10838d775d6ef71b6ea633a0b
parent659fe2a28e8cbaf4672d4db8ef3f13c6efed9c0c
[testsuite] [analyzer] [vxworks] define __STDC_WANT_LIB_EXT1__ to 1

vxworks' headers use #if instead of #ifdef to test for
__STDC_WANT_LIB_EXT1__, so the definition in the analyzer test
strotok-cppreference.c catches a bug there, but not something it's
meant to catch or that we could fix in GCC, so amend the definition to
sidestep the libc bug.

for  gcc/testsuite/ChangeLog

* c-c++-common/analyzer/strtok-cppreference.c
(__STDC_WANT_LIB_EXT1__): Define to 1.
gcc/testsuite/c-c++-common/analyzer/strtok-cppreference.c