From a0ef75b0b218a85a99df90ef838f94db6f9892af Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Fri, 15 Dec 2000 17:27:27 +0000 Subject: [PATCH] Wrapped the header's contents in "extern C" linkage when compiling in a C++ module. --- libtext/text.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/libtext/text.h b/libtext/text.h index 206a7af..11c3afd 100644 --- a/libtext/text.h +++ b/libtext/text.h @@ -25,6 +25,10 @@ #ifndef __LIB_TEXT_H__ #define __LIB_TEXT_H__ 1 +#ifdef __cplusplus +extern "C" { +#endif + #include #include #include @@ -65,4 +69,8 @@ char * text_easy_sprintf(const char * fmt, ...); char * text_find_next_line(char *); char * text_find_string(char * buffer, char * string); +#ifdef __cplusplus +} // end extern "C" +#endif + #endif /* !__LIB_TEXT_H__ */