mirror of
https://github.com/paparazzi/paparazzi.git
synced 2026-05-27 08:55:51 +08:00
declare pprz_version as extern C
This commit is contained in:
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user