]> granicus.if.org Git - graphviz/commit
ortho: MSBuild: define GVC_EXPORTS to ensure correct storage-class attributes
authorMagnus Jacobsson <Magnus.Jacobsson@berotec.se>
Sun, 1 Aug 2021 16:01:01 +0000 (18:01 +0200)
committerMagnus Jacobsson <Magnus.Jacobsson@berotec.se>
Wed, 22 Dec 2021 05:06:18 +0000 (06:06 +0100)
commitb8646d1b490fcb295bd3cf5c397f187a4d238164
tree8f1ceedd9a7b9798867d5110315599d04d41b362
parente1c66fc86f740831f455622f3089e2ef9a2bd3f4
ortho: MSBuild: define GVC_EXPORTS to ensure correct storage-class attributes

The ortho lib is a static library which is linked into the
dynamic-link gvc lib and both use GVC_EXPORTS to control the
storage-class.

Removes many warnings like:

LINK : warning LNK4286: symbol '_gcalloc' defined in 'memory.obj' is imported by 'gvortho.lib(ortho.obj)' [C:\Users\magja\graphviz\lib\gvc.vcxproj]
LINK : warning LNK4217: symbol '_gcalloc' defined in 'memory.obj' is imported by 'gvortho.lib(trapezoid.obj)' in function '_construct_trapezoids' [C:\Users\magja\graphviz\lib\gvc.vcxproj]
C:\Users\magja\graphviz\lib\ortho\ortho.c(1250,1): warning C4273: 'orthoEdges': inconsistent dll linkage [C:\Users\magja\graphviz\lib\ortho\gvortho.vcxproj]

Towards https://gitlab.com/graphviz/graphviz/-/issues/2058.
lib/ortho/gvortho.vcxproj