From 55fc97a86f11844e59876cb07554fa2fa0ed159e Mon Sep 17 00:00:00 2001 From: Jiri Vlasak Date: Mon, 15 Aug 2022 14:18:29 +0200 Subject: [PATCH] Make dubins code c++ compatible --- incl/dubins.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/incl/dubins.h b/incl/dubins.h index 89c4bbe..5db2ad7 100644 --- a/incl/dubins.h +++ b/incl/dubins.h @@ -8,6 +8,10 @@ #ifndef DUBINS_H #define DUBINS_H +#ifdef __cplusplus +extern "C" { +#endif + typedef enum { LSL = 0, @@ -151,6 +155,8 @@ int dubins_path_endpoint(DubinsPath* path, double q[3]); */ int dubins_extract_subpath(DubinsPath* path, double t, DubinsPath* newpath); +#ifdef __cplusplus +} +#endif #endif /* DUBINS_H */ - -- 2.39.2