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