Skip to content

Commit

Permalink
Enclose the MAP++ API on extern C for C++
Browse files Browse the repository at this point in the history
  • Loading branch information
sanguinariojoe committed Aug 28, 2024
1 parent 973f55d commit ba03800
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions modules/map/src/mapapi.h
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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 */

0 comments on commit ba03800

Please sign in to comment.