Added "extern C" to use it with CPP.

master
Gabriel Gritsch 11 years ago
parent a89501b2fb
commit db379ec124

@ -1,6 +1,10 @@
#ifndef __JSMN_H_ #ifndef __JSMN_H_
#define __JSMN_H_ #define __JSMN_H_
#ifdef __cplusplus
extern "C" {
#endif
/** /**
* JSON type identifier. Basic types are: * JSON type identifier. Basic types are:
* o Object * o Object
@ -62,4 +66,8 @@ void jsmn_init(jsmn_parser *parser);
jsmnerr_t jsmn_parse(jsmn_parser *parser, const char *js, size_t len, jsmnerr_t jsmn_parse(jsmn_parser *parser, const char *js, size_t len,
jsmntok_t *tokens, unsigned int num_tokens); jsmntok_t *tokens, unsigned int num_tokens);
#ifdef __cplusplus
}
#endif
#endif /* __JSMN_H_ */ #endif /* __JSMN_H_ */

Loading…
Cancel
Save