Commit d9a9c45b authored by James Zern's avatar James Zern
Browse files

rtcd.sh: add extern "C" to generated headers

Change-Id: Ifb30518555402eb473c3fde81bc860fbe17851dd
Showing with 9 additions and 0 deletions
...@@ -209,6 +209,10 @@ common_top() { ...@@ -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 ...@@ -219,6 +223,11 @@ EOF
common_bottom() { common_bottom() {
cat <<EOF cat <<EOF
#ifdef __cplusplus
} // extern "C"
#endif
#endif #endif
EOF EOF
} }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment