Commits

Serge Zaitsev committed cbb6098 Merge

Merged in MacGritsch/jsmn-patch (pull request #7)

Added "extern C" to use it with CPP.

Comments (0)

Files changed (3)

File contents unchanged.
 #ifndef __JSMN_H_
 #define __JSMN_H_
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 /**
  * JSON type identifier. Basic types are:
  * 	o Object
 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_ */
File contents unchanged.