From 5590b407f8077c1ef0a25cd2948f973000b32683 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Wed, 2 Nov 2022 14:17:42 -0400 Subject: Suppress warnings in C++ test This is necessary because the global warnings may be stricter when building as a subproject. --- test/cpp/test_headers_cpp.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'test/cpp') diff --git a/test/cpp/test_headers_cpp.cpp b/test/cpp/test_headers_cpp.cpp index 0d55be9..7c9a1df 100644 --- a/test/cpp/test_headers_cpp.cpp +++ b/test/cpp/test_headers_cpp.cpp @@ -1,6 +1,10 @@ // Copyright 2022 David Robillard // SPDX-License-Identifier: ISC +#ifdef _WIN32 +# define WIN32_LEAN_AND_MEAN 1 +#endif + #include "zix/allocator.h" // IWYU pragma: keep #include "zix/attributes.h" // IWYU pragma: keep #include "zix/bitset.h" // IWYU pragma: keep -- cgit v1.2.1