From: Erwin Janssen Date: Mon, 20 Jun 2016 22:55:55 +0000 (+0200) Subject: Windows: Pathplan now generating .lib file. X-Git-Tag: untagged-fd4ca25a4ca4e4dc471c~4^2~64 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=68beaeaf9b17ab690aa91b6624ae32eaa8d42da8;p=graphviz Windows: Pathplan now generating .lib file. --- diff --git a/lib/pathplan/Pathplan.vcxproj b/lib/pathplan/Pathplan.vcxproj index 8e94a648a..3d4b848f3 100644 --- a/lib/pathplan/Pathplan.vcxproj +++ b/lib/pathplan/Pathplan.vcxproj @@ -47,7 +47,7 @@ $(SolutionDir)Graphviz\bin\ Release\ - C:\Program Files (x86)\Microsoft Visual Studio 14.0\Team Tools\Static Analysis Tools\Rule Sets\NativeRecommendedRules.ruleset + AllRules.ruleset true diff --git a/lib/pathplan/pathplan.h b/lib/pathplan/pathplan.h index 244e998bf..fdadb2641 100644 --- a/lib/pathplan/pathplan.h +++ b/lib/pathplan/pathplan.h @@ -27,6 +27,16 @@ extern "C" { # define extern __EXPORT__ #endif +/*visual studio*/ +#if defined(WIN32) +# if !defined(PATHPLAN_EXPORTS) +# define extern __declspec(dllimport) +# else +# define extern __declspec(dllexport) +# endif +#endif +/*end visual studio*/ + /* find shortest euclidean path within a simple polygon */ extern int Pshortestpath(Ppoly_t * boundary, Ppoint_t endpoints[2], Ppolyline_t * output_route);