Wrapped the header's contents in "extern C" linkage when compiling in

a C++ module.
This commit is contained in:
Peter Simons 2000-12-15 17:27:27 +00:00
parent b305cb94ab
commit a0ef75b0b2

View File

@ -25,6 +25,10 @@
#ifndef __LIB_TEXT_H__
#define __LIB_TEXT_H__ 1
#ifdef __cplusplus
extern "C" {
#endif
#include <stdio.h>
#include <stdlib.h>
#include <assert.h>
@ -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__ */