From db379ec1248ff8a24c3bb330d46e73898ff3adc6 Mon Sep 17 00:00:00 2001 From: Gabriel Gritsch Date: Fri, 21 Feb 2014 09:53:45 +0100 Subject: [PATCH] Added "extern C" to use it with CPP. --- jsmn.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/jsmn.h b/jsmn.h index 54930ad..c8f388c 100644 --- a/jsmn.h +++ b/jsmn.h @@ -1,6 +1,10 @@ #ifndef __JSMN_H_ #define __JSMN_H_ +#ifdef __cplusplus +extern "C" { +#endif + /** * JSON type identifier. Basic types are: * 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, jsmntok_t *tokens, unsigned int num_tokens); +#ifdef __cplusplus +} +#endif + #endif /* __JSMN_H_ */