From: Magnus Jacobsson Date: Wed, 28 Jul 2021 08:31:46 +0000 (+0200) Subject: gvc: add storage-class attribute declaration of gvrender_ptf to gvcproc.h X-Git-Tag: 3.0.0~94^2~9 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=abf2f1ac25c7052728b21e487de2e8757107ebcb;p=graphviz gvc: add storage-class attribute declaration of gvrender_ptf to gvcproc.h This will allow removing this symbol from gvc.def in an upcoming commit. Note that no other symbols from gvcproc.h were exported from gvc.def, hence the attributes are applied only to gvrender_ptf. Towards https://gitlab.com/graphviz/graphviz/-/issues/2058. --- diff --git a/lib/gvc/gvcproc.h b/lib/gvc/gvcproc.h index 447a0436d..215b21f8d 100644 --- a/lib/gvc/gvcproc.h +++ b/lib/gvc/gvcproc.h @@ -67,7 +67,15 @@ /* render */ +#ifdef GVDLL +#ifdef GVC_EXPORTS + __declspec(dllexport) pointf gvrender_ptf(GVJ_t *job, pointf p); +#else + __declspec(dllimport) pointf gvrender_ptf(GVJ_t *job, pointf p); +#endif +#else pointf gvrender_ptf(GVJ_t *job, pointf p); +#endif pointf* gvrender_ptf_A(GVJ_t *job, pointf *af, pointf *AF, int n); int gvrender_begin_job(GVJ_t * job);