C headers: add C++ extern "C" { } section

This commit is contained in:
Laurence Withers 2011-11-15 16:41:41 +00:00
parent 81dec06066
commit c741b1e686
4 changed files with 16 additions and 0 deletions

View File

@ -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

View File

@ -5,6 +5,10 @@
* License: GPLv3
*/
#ifdef __cpluscplus
}
#endif
#endif
/* options for text editors

View File

@ -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

View File

@ -5,6 +5,10 @@
* License: GPLv3
*/
#ifdef __cplusplus
}
#endif
#endif
/* options for text editors