From ba0380047403f84c64895cebb930ee52a3358bd7 Mon Sep 17 00:00:00 2001 From: Jose Luis Cercos-Pita Date: Wed, 28 Aug 2024 12:19:54 +0200 Subject: [PATCH] Enclose the MAP++ API on extern C for C++ --- modules/map/src/mapapi.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/modules/map/src/mapapi.h b/modules/map/src/mapapi.h index cbf0d77b4..18e62fa69 100644 --- a/modules/map/src/mapapi.h +++ b/modules/map/src/mapapi.h @@ -30,6 +30,10 @@ // MAP_ERROR_CODE #include "maperror.h" +#ifdef __cplusplus +extern "C" +{ +#endif // Some redefinitions from MAP_Types.h, so the API does not need to exposes the // internal data structures. @@ -587,5 +591,8 @@ MAP_EXTERNCALL MAP_Output_t map_create_output_type(char* map_msg, MAP_ERROR_CODE */ MAP_EXTERNCALL MAP_ContinuousState_t map_create_continuous_type(char* map_msg, MAP_ERROR_CODE* ierr); +#ifdef __cplusplus +} +#endif #endif /* _MAPAPI_H */