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()