Fixed json_checker build for c++

This commit is contained in:
Jordan Cristiano 2015-06-19 14:12:51 -04:00
parent b763712020
commit d1921abc9f
3 changed files with 15 additions and 2 deletions

View File

@ -27,7 +27,7 @@ SOFTWARE.
*/ */
#include <stdlib.h> #include <stdlib.h>
#include "JSON_checker.h" #include "json_checker/JSON_checker.h"
#define true 1 #define true 1
#define false 0 #define false 0

View File

@ -1,5 +1,12 @@
#pragma once
/* JSON_checker.h */ /* JSON_checker.h */
#ifdef __cplusplus
extern "C" {
#endif /* __cplusplus */
typedef struct JSON_checker_struct { typedef struct JSON_checker_struct {
int state; int state;
int depth; int depth;
@ -11,3 +18,7 @@ typedef struct JSON_checker_struct {
extern JSON_checker new_JSON_checker(int depth); extern JSON_checker new_JSON_checker(int depth);
extern int JSON_checker_char(JSON_checker jc, int next_char); extern int JSON_checker_char(JSON_checker jc, int next_char);
extern int JSON_checker_done(JSON_checker jc); extern int JSON_checker_done(JSON_checker jc);
#ifdef __cplusplus
} /* extern "C" */
#endif /* __cplusplus */

View File

@ -23,10 +23,12 @@ solution "demboyz"
"../demboyz/**.h", "../demboyz/**.h",
"../demboyz/**.cpp", "../demboyz/**.cpp",
"../external/**.h", "../external/**.h",
"../external/**.cpp" "../external/**.cpp",
"../external/**.c"
} }
includedirs includedirs
{ {
"../external/json_checker/include",
"../external/sourcesdk/include", "../external/sourcesdk/include",
"../external/rapidjson-1.0.2/include", "../external/rapidjson-1.0.2/include",
"../demboyz" "../demboyz"