From: Matthew Fernandez Date: Sat, 27 Aug 2022 01:31:01 +0000 (-0700) Subject: smyrna: drop 'HAVE_GTS' and 'HAVE_TRIANGLE' from the Windows builds X-Git-Tag: 6.0.1~20^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7bee0d9110718f564e22978fd19f78eb7b361649;p=graphviz smyrna: drop 'HAVE_GTS' and 'HAVE_TRIANGLE' from the Windows builds This appears to have been a mistake in 3c8cf3624f6a8b82434115177471b6e7092f8365 that added these files. This occurred long after triangle.[ch] were removed (ca31e3197ad25c174bd0c9d133c5479e9f3a56a1). And as of now, GTS is only available on Windows through Vcpkg, a package manager that did not exist at the time of 3c8cf3624f6a8b82434115177471b6e7092f8365. So it seems safe to conclude Windows really did not `HAVE_GTS` nor `HAVE_TRIANGLE` at this time. This caused no ill-effects because defining these within Smyrna is a no-op. All use of these macros occurs outside cmd/smyrna, in the libraries on which Smyrna depends. But defining these unused macros was creating unnecessary confusion. --- diff --git a/cmd/smyrna/smyrna.vcxproj b/cmd/smyrna/smyrna.vcxproj index 488ac0ab5..b85910fd5 100644 --- a/cmd/smyrna/smyrna.vcxproj +++ b/cmd/smyrna/smyrna.vcxproj @@ -53,7 +53,7 @@ /D "_CRT_SECURE_NO_DEPRECATE" %(AdditionalOptions) Disabled $(ProjectDir);$(ProjectDir)gui;$(SolutionDir)windows\include;$(SolutionDir)windows\dependencies\libraries\vcpkg\installed\x86-windows\include;$(SolutionDir)windows\dependencies\libraries\x86\include;$(SolutionDir)windows\dependencies\libraries\x86\include\cairo;$(SolutionDir);$(SolutionDir)lib;$(SolutionDir)lib\cdt;$(SolutionDir)lib\cgraph;$(SolutionDir)lib\common;$(SolutionDir)lib\gvc;$(SolutionDir)lib\gvpr;$(SolutionDir)lib\pathplan;$(SolutionDir)lib\xdot;%(AdditionalIncludeDirectories) - _DEBUG;_CONSOLE;HAVE_TRIANGLE;HAVE_GTS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;%(PreprocessorDefinitions) + _DEBUG;_CONSOLE;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;%(PreprocessorDefinitions) EnableFastChecks MultiThreadedDebugDLL @@ -95,7 +95,7 @@ copy $(SolutionDir)windows\dependencies\libraries\vcpkg\installed\x86-windows\bi $(ProjectDir);$(ProjectDir)gui;$(SolutionDir)windows\include;$(SolutionDir)windows\dependencies\libraries\vcpkg\installed\x86-windows\include;$(SolutionDir)windows\dependencies\libraries\x86\include;$(SolutionDir)windows\dependencies\libraries\x86\include\cairo;$(SolutionDir);$(SolutionDir)lib;$(SolutionDir)lib\cdt;$(SolutionDir)lib\cgraph;$(SolutionDir)lib\common;$(SolutionDir)lib\gvc;$(SolutionDir)lib\gvpr;$(SolutionDir)lib\pathplan;$(SolutionDir)lib\xdot;%(AdditionalIncludeDirectories) - NDEBUG;_CONSOLE;HAVE_TRIANGLE;HAVE_GTS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;%(PreprocessorDefinitions) + NDEBUG;_CONSOLE;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;%(PreprocessorDefinitions) Level4 true