]> granicus.if.org Git - graphviz/commitdiff
[nfc] define VIS_API instead of redefining extern
authorMagnus Jacobsson <Magnus.Jacobsson@berotec.se>
Tue, 20 Jul 2021 06:36:27 +0000 (08:36 +0200)
committerMagnus Jacobsson <Magnus.Jacobsson@berotec.se>
Wed, 21 Jul 2021 16:29:25 +0000 (18:29 +0200)
lib/pathplan/vis.h

index 13c5546b20d3c98f97797631149c8e2cf87b228b..c8c3e20b613a2740ba1ddcb29146fb5586d68534 100644 (file)
@@ -40,19 +40,22 @@ extern "C" {
     };
 #ifdef _WIN32
 #ifndef PATHPLAN_EXPORTS
-#define extern __declspec(dllimport)
+#define VIS_API __declspec(dllimport)
 #endif
 #endif
 /*end visual studio*/
+#ifndef VIS_API
+#define VIS_API extern
+#endif
 
-       extern COORD *ptVis(vconfig_t *, int, Ppoint_t);
-    extern bool directVis(Ppoint_t, int, Ppoint_t, int, vconfig_t *);
-    extern void visibility(vconfig_t *);
-    extern int *makePath(Ppoint_t p, int pp, COORD * pvis,
+       VIS_API COORD *ptVis(vconfig_t *, int, Ppoint_t);
+    VIS_API bool directVis(Ppoint_t, int, Ppoint_t, int, vconfig_t *);
+    VIS_API void visibility(vconfig_t *);
+    VIS_API int *makePath(Ppoint_t p, int pp, COORD * pvis,
                         Ppoint_t q, int qp, COORD * qvis,
                         vconfig_t * conf);
 
-#undef extern
+#undef VIS_API
 
 #ifdef __cplusplus
 }