From 341073b587ab2120953e5b83b46a135eb88e1af9 Mon Sep 17 00:00:00 2001 From: Simon Rozman Date: Thu, 5 Jun 2025 12:06:51 +0200 Subject: [PATCH] html: ignore MSVC pragmas in GCC builds Signed-off-by: Simon Rozman --- include/stdex/html.hpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/include/stdex/html.hpp b/include/stdex/html.hpp index b646fb288..0ed5db605 100644 --- a/include/stdex/html.hpp +++ b/include/stdex/html.hpp @@ -29,6 +29,11 @@ #undef small #endif +#if defined(__GNUC__) +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wunknown-pragmas" +#endif + namespace stdex { namespace html @@ -2687,3 +2692,7 @@ namespace stdex }; } } + +#if defined(__GNUC__) +#pragma GCC diagnostic pop +#endif