Merge pull request #81 from RickySu/headerfile-fix

add extern c in c++
This commit is contained in:
Yo-An Lin 2015-08-28 14:00:08 +08:00
commit d9a7deab9a
2 changed files with 7 additions and 2 deletions

View file

@ -14,6 +14,7 @@
#include <stdbool.h>
#include "r3_define.h"
#include "str_array.h"
#include "r3_str.h"
#ifdef __cplusplus
extern "C" {

View file

@ -7,8 +7,9 @@
#ifndef STR_H
#define STR_H
#include "r3.h"
#include "config.h"
#ifdef __cplusplus
extern "C" {
#endif
char * r3_slug_compile(const char * str, int len);
@ -51,6 +52,9 @@ char *strdup(const char *s);
char *strndup(const char *s, int n);
#endif
#ifdef __cplusplus
}
#endif
#endif /* !STR_H */