Wrapped the header's contents in "extern C" linkage when compiling in
a C++ module.
This commit is contained in:
parent
b305cb94ab
commit
a0ef75b0b2
@ -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__ */
|
||||
|
||||
Loading…
Reference in New Issue
Block a user