]> granicus.if.org Git - graphviz/commit
common: don't use dllexport when GVDLL and _BLD_gvc are set
authorMagnus Jacobsson <Magnus.Jacobsson@berotec.se>
Sat, 25 Sep 2021 11:42:05 +0000 (13:42 +0200)
committerMagnus Jacobsson <Magnus.Jacobsson@berotec.se>
Sun, 26 Sep 2021 06:36:52 +0000 (08:36 +0200)
commit2d388c254295cd2590f1dc9a31fe333390c98c46
treed4623c742817ffc88fb2f33b8d6a54b188af097b
parent25666e5c260a288475680c0afb88f7b27fb1eb0f
common: don't use dllexport when GVDLL and _BLD_gvc are set

This is a temporary measure until an upcoming commit series cleans up
the control of the Windows storage-class attributes.

Without this change, an upcoming commit that defines GVDLL would cause
many warnings like this:

globals.obj : warning LNK4197: export 'Version' specified multiple times; using first specification [C:\Users\magja\graphviz\build\lib\gvc\gvc.vcxproj]

The reason for this is that the symbols are already defined in the
gvc.def file. For more, see
https://support.microsoft.com/en-us/topic/you-receive-an-lnk4197-error-in-the-64-bit-version-of-the-visual-c-compiler-f002b07e-4ba6-46d4-eed4-0c82412b4ac6.
lib/common/globals.h