From c741b1e6860b6f46f7fdf79436e505c7f3f8c94f Mon Sep 17 00:00:00 2001 From: Laurence Withers Date: Tue, 15 Nov 2011 16:41:41 +0000 Subject: [PATCH] C headers: add C++ extern "C" { } section --- scripts/build.header.c/000_TopHeader.h | 4 ++++ scripts/build.header.c/999_BottomHeader.h | 4 ++++ scripts/build.lib.c/000_TopHeader.h | 4 ++++ scripts/build.lib.c/999_BottomHeader.h | 4 ++++ 4 files changed, 16 insertions(+) diff --git a/scripts/build.header.c/000_TopHeader.h b/scripts/build.header.c/000_TopHeader.h index 08c7fd4..d8d369c 100644 --- a/scripts/build.header.c/000_TopHeader.h +++ b/scripts/build.header.c/000_TopHeader.h @@ -8,6 +8,10 @@ #ifndef HEADER_@CNAME@ #define HEADER_@CNAME@ +#ifdef __cplusplus +extern "C" { +#endif + /* standard includes, or includes needed for type declarations */ /* options for text editors diff --git a/scripts/build.header.c/999_BottomHeader.h b/scripts/build.header.c/999_BottomHeader.h index c3def5d..dcb0064 100644 --- a/scripts/build.header.c/999_BottomHeader.h +++ b/scripts/build.header.c/999_BottomHeader.h @@ -5,6 +5,10 @@ * License: GPLv3 */ +#ifdef __cpluscplus +} +#endif + #endif /* options for text editors diff --git a/scripts/build.lib.c/000_TopHeader.h b/scripts/build.lib.c/000_TopHeader.h index 08c7fd4..d8d369c 100644 --- a/scripts/build.lib.c/000_TopHeader.h +++ b/scripts/build.lib.c/000_TopHeader.h @@ -8,6 +8,10 @@ #ifndef HEADER_@CNAME@ #define HEADER_@CNAME@ +#ifdef __cplusplus +extern "C" { +#endif + /* standard includes, or includes needed for type declarations */ /* options for text editors diff --git a/scripts/build.lib.c/999_BottomHeader.h b/scripts/build.lib.c/999_BottomHeader.h index c3def5d..7ca650e 100644 --- a/scripts/build.lib.c/999_BottomHeader.h +++ b/scripts/build.lib.c/999_BottomHeader.h @@ -5,6 +5,10 @@ * License: GPLv3 */ +#ifdef __cplusplus +} +#endif + #endif /* options for text editors