diff --git a/sw/include/pprz_version.h b/sw/include/pprz_version.h index ec381877a0..dfa7ffa619 100644 --- a/sw/include/pprz_version.h +++ b/sw/include/pprz_version.h @@ -41,6 +41,10 @@ #ifndef PPRZ_VERSION_H #define PPRZ_VERSION_H +#ifdef __cplusplus +extern "C" { +#endif + #define _STRINGIFY(s) #s #define STRINGIFY(s) _STRINGIFY(s) @@ -75,4 +79,8 @@ static inline void get_pprz_git_version(uint8_t sha1[8]) } } +#ifdef __cplusplus +} /* extern "C" */ +#endif + #endif /* PPRZ_VERSION_H */