]> granicus.if.org Git - graphviz/commitdiff
pack: correct storage-class attribute declarations in pack.h
authorMagnus Jacobsson <Magnus.Jacobsson@berotec.se>
Mon, 26 Jul 2021 13:36:34 +0000 (15:36 +0200)
committerMagnus Jacobsson <Magnus.Jacobsson@berotec.se>
Sat, 25 Dec 2021 22:07:59 +0000 (23:07 +0100)
lib/pack/pack.h

index 6668c4bb1312301d846f5099d557c6e3b67e36e3..7a5163dda5c50e35d21d516b41acd4672766a784 100644 (file)
@@ -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);