From 027fc03e93fc2ea0fc8ed7a49f4130b884db583a Mon Sep 17 00:00:00 2001 From: Christoph Froehlich Date: Sun, 22 Mar 2026 21:11:49 +0000 Subject: [PATCH] FIx invalid preprocessor command 'warning' on MSVC --- tl_expected/include/tl_expected/expected.hpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/tl_expected/include/tl_expected/expected.hpp b/tl_expected/include/tl_expected/expected.hpp index 2af2e7a..3c7f98e 100644 --- a/tl_expected/include/tl_expected/expected.hpp +++ b/tl_expected/include/tl_expected/expected.hpp @@ -13,7 +13,13 @@ // . /// -#warning "tl_expected/expected.hpp is deprecated. Use from libexpected-dev, or if the system header is not available." +#ifdef _WIN32 +#pragma message( \ + "tl_expected/expected.hpp is deprecated. Use from libexpected-dev, or if the system header is not available.") // NOLINT +#else +#warning \ + "tl_expected/expected.hpp is deprecated. Use from libexpected-dev, or if the system header is not available." // NOLINT +#endif // If the system header is available, redirect to it. // Otherwise, fall back to the vendored version #if __has_include()