[tyndur-devel] [PATCH] libc: ctype.h: extern "C" für C++-Programme
Antworten
- [tyndur-devel] [PATCH] libc: ctype.h: extern "C" für C++-Programme · alex at tyndur.org
Kevin Wolf ·
! libc: ctype.h enthält mittlerweile nicht mehr static-inline- Funktionen, sondern richtige Prototypen, also brauchen wir jetzt auch ein extern "C", wenn libstdc++ noch funktionieren soll Signed-off-by: Kevin Wolf <kevin at tyndur.org> --- src/include/ctype.h | 8 ++++++++ 1 files changed, 8 insertions(+), 0 deletions(-) diff --git a/src/include/ctype.h b/src/include/ctype.h index f777511..4beba2c 100644 --- a/src/include/ctype.h +++ b/src/include/ctype.h @@ -29,6 +29,10 @@ #ifndef _CTYPE_H_ #define _CTYPE_H_ +#ifdef __cplusplus +extern "C" { +#endif + int isprint(int c); int iscntrl(int c); int isspace(int c); @@ -45,4 +49,8 @@ int isgraph(int c); int tolower(int c); int toupper(int c); +#ifdef __cplusplus +}; // extern "C" +#endif + #endif /* ndef CTYPE_H */ -- 1.6.0.2