From 579768eb7bc6eb573a24f81889939c6e5505cf15 Mon Sep 17 00:00:00 2001 From: Silvio Traversaro Date: Wed, 7 Jun 2023 08:30:14 +0200 Subject: [PATCH] Backport Windows fix to ign-transport8 Signed-off-by: Silvio Traversaro --- include/gz/transport/TopicStatistics.hh | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/include/gz/transport/TopicStatistics.hh b/include/gz/transport/TopicStatistics.hh index 3bdf5a755..c547d5c0d 100644 --- a/include/gz/transport/TopicStatistics.hh +++ b/include/gz/transport/TopicStatistics.hh @@ -19,12 +19,24 @@ #include +#include #include #include #include #include "gz/transport/config.hh" #include "gz/transport/Export.hh" +#ifdef _WIN32 +#ifndef NOMINMAX + #define NOMINMAX +#endif +#ifdef min + #undef min + #undef max +#endif +#include +#endif + namespace ignition { namespace transport