From d9fc971985bb9ff4d4120ece50c47bfc9ba2c026 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mart=C3=ADn=20Lucas=20Golini?= Date: Tue, 11 Mar 2025 00:38:03 -0300 Subject: [PATCH] Fix Windows build. --- src/tools/ecode/featureshealth.cpp | 23 ++++++++++++++++------- 1 file changed, 16 insertions(+), 7 deletions(-) diff --git a/src/tools/ecode/featureshealth.cpp b/src/tools/ecode/featureshealth.cpp index 4b3c70b7f..78d33af42 100644 --- a/src/tools/ecode/featureshealth.cpp +++ b/src/tools/ecode/featureshealth.cpp @@ -1,3 +1,14 @@ +#ifndef WIN32_LEAN_AND_MEAN +#define WIN32_LEAN_AND_MEAN +#endif +#include +#ifdef UUID +#undef UUID +#endif +#ifdef KEY_EXECUTE +#undef KEY_EXECUTE +#endif + #include "featureshealth.hpp" #include "plugins/debugger/debuggerplugin.hpp" #include "plugins/formatter/formatterplugin.hpp" @@ -9,12 +20,10 @@ #include #include #include -#include using namespace EE::System; using namespace EE::UI::Doc; using namespace EE::UI; -using namespace tabulate; namespace ecode { @@ -142,7 +151,7 @@ std::vector FeaturesHealth::getHealth( PluginManager std::string FeaturesHealth::generateHealthStatus( PluginManager* pluginManager, OutputFormat format ) { auto status( getHealth( pluginManager ) ); - Table table; + tabulate::Table table; table.format().border_top( "" ).border_bottom( "" ).border_left( "" ).border_right( "" ).corner( "" ); @@ -154,8 +163,8 @@ std::string FeaturesHealth::generateHealthStatus( PluginManager* pluginManager, table[0][i] .format() .font_color( tabulate::Color::white ) - .font_align( FontAlign::center ) - .font_style( { FontStyle::bold } ); + .font_align( tabulate::FontAlign::center ) + .font_style( { tabulate::FontStyle::bold } ); } #if EE_PLATFORM == EE_PLATFORM_WIN @@ -235,10 +244,10 @@ std::string FeaturesHealth::generateHealthStatus( PluginManager* pluginManager, } if ( OutputFormat::Markdown == format ) { - MarkdownExporter exporter; + tabulate::MarkdownExporter exporter; return exporter.dump( table ); } else if ( OutputFormat::AsciiDoc == format ) { - AsciiDocExporter exporter; + tabulate::AsciiDocExporter exporter; return exporter.dump( table ); } else if ( OutputFormat::Terminal == format ) { std::cout << table << "\n";