From: Magnus Jacobsson Date: Mon, 26 Jul 2021 13:36:34 +0000 (+0200) Subject: pack: correct storage-class attribute declarations in pack.h X-Git-Tag: 3.0.0~109^2~1 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a45cf95190dd3a340d89778cafb6e80bd0009118;p=graphviz pack: correct storage-class attribute declarations in pack.h --- diff --git a/lib/pack/pack.h b/lib/pack/pack.h index 6668c4bb1..7a5163dda 100644 --- a/lib/pack/pack.h +++ b/lib/pack/pack.h @@ -51,15 +51,16 @@ typedef unsigned int packval_t; int flags; } pack_info; -/*visual studio*/ -#ifdef _WIN32 -#ifndef GVC_EXPORTS +#ifdef GVDLL +#ifdef GVC_EXPORTS +#define PACK_API __declspec(dllexport) +#else #define PACK_API __declspec(dllimport) #endif #endif -/*end visual studio*/ + #ifndef PACK_API -#define PACK_API extern +#define PACK_API /* nothing */ #endif PACK_API point *putRects(int ng, boxf* bbs, pack_info* pinfo);