rtcd.sh: add extern "C" to generated headers
Change-Id: Ifb30518555402eb473c3fde81bc860fbe17851dd
This commit is contained in:
Родитель
9c8b74f121
Коммит
d9a9c45b90
|
@ -209,6 +209,10 @@ common_top() {
|
||||||
#define RTCD_EXTERN extern
|
#define RTCD_EXTERN extern
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
$(process_forward_decls)
|
$(process_forward_decls)
|
||||||
|
|
||||||
$(declare_function_pointers c $ALL_ARCHS)
|
$(declare_function_pointers c $ALL_ARCHS)
|
||||||
|
@ -219,6 +223,11 @@ EOF
|
||||||
|
|
||||||
common_bottom() {
|
common_bottom() {
|
||||||
cat <<EOF
|
cat <<EOF
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
} // extern "C"
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
EOF
|
EOF
|
||||||
}
|
}
|
||||||
|
|
Загрузка…
Ссылка в новой задаче