]> granicus.if.org Git - graphviz/commitdiff
common: use only the GVDLL symbol enable storage-class attributes in global.h
authorMagnus Jacobsson <Magnus.Jacobsson@berotec.se>
Sun, 2 Jan 2022 11:47:45 +0000 (12:47 +0100)
committerMagnus Jacobsson <Magnus.Jacobsson@berotec.se>
Sun, 9 Jan 2022 19:24:28 +0000 (20:24 +0100)
Anything that depends on storage-class attributes already define both
GVC_EXPORTS and WIN32_DLL.

lib/common/globals.h

index e52e776347b773ca3610e267174d9fd42e0f7358..df0bd6ad7c093575d31dc0cff2cc53cf962eee31 100644 (file)
@@ -14,7 +14,7 @@
 extern "C" {
 #endif
 
-#if defined(GVDLL) || defined(WIN32_DLL)
+#ifdef GVDLL
 #if defined(GVC_EXPORTS) || defined(_BLD_gvc)
 #define GLOBALS_API __declspec(dllexport)
 #else