From 562ff8b6043d18afac49e9bdf0049feae4edad23 Mon Sep 17 00:00:00 2001 From: Shahram Najm Date: Fri, 2 Feb 2024 17:57:59 +0000 Subject: [PATCH] Fix broken Windows build --- tests/extract_offsets.cc | 3 +++ tests/extract_offsets.sh | 5 +++++ 2 files changed, 8 insertions(+) diff --git a/tests/extract_offsets.cc b/tests/extract_offsets.cc index e72fddc94..4860d64ee 100644 --- a/tests/extract_offsets.cc +++ b/tests/extract_offsets.cc @@ -12,7 +12,10 @@ #undef NDEBUG #include + +#ifndef ECCODES_ON_WINDOWS #include +#endif int main(int argc, char* argv[]) { diff --git a/tests/extract_offsets.sh b/tests/extract_offsets.sh index ea43f0091..65cf98a4f 100755 --- a/tests/extract_offsets.sh +++ b/tests/extract_offsets.sh @@ -17,6 +17,11 @@ temp2="temp.${label}.2" tempLog="temp.${label}.log" tempRef="temp.${label}.ref" +if [ $ECCODES_ON_WINDOWS -eq 1 ]; then + echo "$0: This test is currently disabled on Windows" + exit 0 +fi + echo "Multi-message BUFR..." # --------------------------- input=${data_dir}/bufr/aeolus_wmo_26.bufr