From ac8142b857f992c2bbba57e4435be0c12c95817d Mon Sep 17 00:00:00 2001 From: "CW01\\uig08771" Date: Tue, 23 Jul 2024 15:33:30 +0800 Subject: [PATCH] Use _MSC_VER and support gcc on windows (mingw) Signed-off-by: CW01\uig08771 --- include/class_loader/class_loader_core.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/class_loader/class_loader_core.hpp b/include/class_loader/class_loader_core.hpp index f41a87f..5e1dc16 100644 --- a/include/class_loader/class_loader_core.hpp +++ b/include/class_loader/class_loader_core.hpp @@ -301,12 +301,12 @@ registerPlugin(const std::string & class_name, const std::string & base_class_na getPluginBaseToFactoryMapMapMutex().unlock(); -#ifndef _WIN32 +#ifndef _MSC_VER #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wdelete-non-virtual-dtor" #endif delete (p); // Note: This is the only place where metaobjects can be destroyed -#ifndef _WIN32 +#ifndef _MSC_VER #pragma GCC diagnostic pop #endif });