From 9d05e941a9dc8a20291218841e451a841b6202a9 Mon Sep 17 00:00:00 2001 From: Magnus Jacobsson Date: Tue, 14 Dec 2021 20:57:29 +0100 Subject: [PATCH] gvc: MSBuild: define GVDLL to ensure correct storage-class attributes An upcoming commit that removes the common/memory.h symbols from the gvc.def file would otherwise cause errors like this: matrix_market.obj : error LNK2019: unresolved external symbol _gmalloc referenced in function _SparseMatrix_import_matrix_market Towards https://gitlab.com/graphviz/graphviz/-/issues/2058. --- lib/gvc.vcxproj | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/gvc.vcxproj b/lib/gvc.vcxproj index 6385a6f3a..c368c5892 100644 --- a/lib/gvc.vcxproj +++ b/lib/gvc.vcxproj @@ -52,7 +52,7 @@ Disabled $(SolutionDir)windows\include;$(SolutionDir)windows\dependencies\GTK2\include;$(SolutionDir)windows\dependencies\libraries\x86\include;$(SolutionDir);$(SolutionDir)lib;$(SolutionDir)lib\cdt;$(SolutionDir)lib\cgraph;$(SolutionDir)lib\common;$(SolutionDir)lib\pathplan;$(SolutionDir)lib\gvc;$(SolutionDir)lib\xdot;%(AdditionalIncludeDirectories) - WIN32;_DEBUG;_WINDOWS;_USRDLL;GVC_EXPORTS;WIN32_DLL;%(PreprocessorDefinitions) + WIN32;_DEBUG;_WINDOWS;_USRDLL;GVDLL;GVC_EXPORTS;WIN32_DLL;%(PreprocessorDefinitions) EnableFastChecks MultiThreadedDebugDLL @@ -85,7 +85,7 @@ awk -f $(SolutionDir)awk\colortbl.awk color_lib > common\colortbl.h $(SolutionDir)windows\include;$(SolutionDir)windows\dependencies\GTK2\include;$(SolutionDir)windows\dependencies\libraries\x86\include;$(SolutionDir);$(SolutionDir)lib;$(SolutionDir)lib\cdt;$(SolutionDir)lib\cgraph;$(SolutionDir)lib\common;$(SolutionDir)lib\pathplan;$(SolutionDir)lib\gvc;$(SolutionDir)lib\xdot;%(AdditionalIncludeDirectories) - NDEBUG;_WINDOWS;_USRDLL;GVC_EXPORTS;WIN32_DLL;%(PreprocessorDefinitions) + NDEBUG;_WINDOWS;_USRDLL;GVDLL;GVC_EXPORTS;WIN32_DLL;%(PreprocessorDefinitions) Level4 true -- 2.50.1