From d9a9c45b90e08aa5e2e2d1f5f8aea60eb6cde8fe Mon Sep 17 00:00:00 2001 From: James Zern <jzern@google.com> Date: Fri, 17 Jan 2014 20:53:27 -0800 Subject: [PATCH] rtcd.sh: add extern "C" to generated headers Change-Id: Ifb30518555402eb473c3fde81bc860fbe17851dd --- build/make/rtcd.sh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/build/make/rtcd.sh b/build/make/rtcd.sh index 2967b5aedc..ed037132af 100755 --- a/build/make/rtcd.sh +++ b/build/make/rtcd.sh @@ -209,6 +209,10 @@ common_top() { #define RTCD_EXTERN extern #endif +#ifdef __cplusplus +extern "C" { +#endif + $(process_forward_decls) $(declare_function_pointers c $ALL_ARCHS) @@ -219,6 +223,11 @@ EOF common_bottom() { cat <<EOF + +#ifdef __cplusplus +} // extern "C" +#endif + #endif EOF } -- GitLab