From 811c7fd5a592257a8525d6de92178dfa122c4b86 Mon Sep 17 00:00:00 2001 From: Magnus Jacobsson Date: Mon, 26 Jul 2021 15:33:57 +0200 Subject: [PATCH] common: correct storage-class attribute declarations in utils.h This will allow removing the utils.h symbols from the gvc.def file in an upcoming commit. Towards https://gitlab.com/graphviz/graphviz/-/issues/2058. --- lib/common/utils.h | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/lib/common/utils.h b/lib/common/utils.h index 61bc6816d..11ddc6366 100644 --- a/lib/common/utils.h +++ b/lib/common/utils.h @@ -19,15 +19,16 @@ extern "C" { #endif -/*visual studio*/ -#ifdef _WIN32 -#ifndef GVC_EXPORTS +#ifdef GVDLL +#ifdef GVC_EXPORTS +#define UTILS_API __declspec(dllexport) +#else #define UTILS_API __declspec(dllimport) #endif #endif -/*end visual studio*/ + #ifndef UTILS_API -#define UTILS_API extern +#define UTILS_API /* nothing */ #endif // options to tweak the behavior of XML escaping -- 2.40.0