From 02bac9a7022d3e2feeef2d7ad001cd071645f646 Mon Sep 17 00:00:00 2001 From: LIU Hao Date: Mon, 11 Nov 2024 02:54:37 +0800 Subject: [PATCH] test,misc: Update header consistency checks (cherry picked from commit 3cc03fea9dba5cb82b221df2eba0f545841ac869) Signed-off-by: LIU Hao --- check_includes.sh | 4 ++-- test/gthr_c89_pedantic.c | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/check_includes.sh b/check_includes.sh index 5160a998f3..4c4970f52c 100755 --- a/check_includes.sh +++ b/check_includes.sh @@ -10,14 +10,14 @@ export CXXFLAGS="-D_WIN32_WINNT=0x0601 -Ibuild_debug -std=c++11" # note: `sem` is not always available _sem="parallel --will-cite --semaphore --halt soon,fail=1" -for _f in $(find "mcfgthread" -name "*.[hc]") +for _f in $(find ~+/"mcfgthread" -name "*.[hc]") do echo "Checking includes: ${_f}" ${_sem} -j+0 -- ${CC} ${CFLAGS} -x c ${_f} -S -o /dev/null done ${_sem} --wait -for _f in $(find "mcfgthread" -name "*.[hc]pp") +for _f in $(find ~+/"mcfgthread" -name "*.[hc]pp") do echo "Checking includes: ${_f}" ${_sem} -j+0 -- ${CXX} ${CXXFLAGS} -x c++ ${_f} -S -o /dev/null diff --git a/test/gthr_c89_pedantic.c b/test/gthr_c89_pedantic.c index f24824231c..aef367bf56 100644 --- a/test/gthr_c89_pedantic.c +++ b/test/gthr_c89_pedantic.c @@ -23,6 +23,7 @@ #include "../mcfgthread/sem.h" #include "../mcfgthread/thread.h" #include "../mcfgthread/tls.h" +#include "../mcfgthread/shared_mutex.h" #if 0 __MCF_C99(+1) != 0 # warning Please compile this file as C89.