From: Magnus Jacobsson Date: Tue, 14 Dec 2021 19:57:29 +0000 (+0100) Subject: gvc: MSBuild: define GVDLL to ensure correct storage-class attributes X-Git-Tag: 3.0.0~118^2~7 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9d05e941a9dc8a20291218841e451a841b6202a9;p=graphviz 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. --- 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