From 95f1273ca440bd21b50825c99c9099ac5f32e660 Mon Sep 17 00:00:00 2001 From: Magnus Jacobsson Date: Thu, 23 Sep 2021 23:44:09 +0200 Subject: [PATCH] gvc: avoid macro redefinition warning when GVDLL is defined Without this change, an upcoming commit that defines GVDLL would cause warnings like this: C:\Users\magja\graphviz\lib\gvc/gvplugin_loadimage.h(29,1): warning C4005: 'GVPLUGIN_LOADIMAGE_API': macro redefinition [C:\Users\magja\graphviz\build\plugin\gdiplus\gvplugin_gdiplus.vcxproj] --- lib/gvc/gvplugin_loadimage.h | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/gvc/gvplugin_loadimage.h b/lib/gvc/gvplugin_loadimage.h index 0603d2a3b..a73f9aea2 100644 --- a/lib/gvc/gvplugin_loadimage.h +++ b/lib/gvc/gvplugin_loadimage.h @@ -26,6 +26,7 @@ extern "C" { /*visual studio*/ #ifdef _WIN32 #ifndef GVC_EXPORTS +#undef GVPLUGIN_LOADIMAGE_API #define GVPLUGIN_LOADIMAGE_API __declspec(dllimport) #endif #endif -- 2.40.0