summaryrefslogtreecommitdiff
path: root/build/make/rtcd.sh
diff options
context:
space:
mode:
Diffstat (limited to 'build/make/rtcd.sh')
-rwxr-xr-xbuild/make/rtcd.sh9
1 files changed, 9 insertions, 0 deletions
diff --git a/build/make/rtcd.sh b/build/make/rtcd.sh
index 2967b5aed..ed037132a 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
}