Fixed json_checker build for c++
This commit is contained in:
parent
b763712020
commit
d1921abc9f
2
external/json_checker/JSON_checker.c
vendored
2
external/json_checker/JSON_checker.c
vendored
@ -27,7 +27,7 @@ SOFTWARE.
|
||||
*/
|
||||
|
||||
#include <stdlib.h>
|
||||
#include "JSON_checker.h"
|
||||
#include "json_checker/JSON_checker.h"
|
||||
|
||||
#define true 1
|
||||
#define false 0
|
||||
|
@ -1,5 +1,12 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
/* JSON_checker.h */
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif /* __cplusplus */
|
||||
|
||||
typedef struct JSON_checker_struct {
|
||||
int state;
|
||||
int depth;
|
||||
@ -11,3 +18,7 @@ typedef struct JSON_checker_struct {
|
||||
extern JSON_checker new_JSON_checker(int depth);
|
||||
extern int JSON_checker_char(JSON_checker jc, int next_char);
|
||||
extern int JSON_checker_done(JSON_checker jc);
|
||||
|
||||
#ifdef __cplusplus
|
||||
} /* extern "C" */
|
||||
#endif /* __cplusplus */
|
||||
|
@ -23,10 +23,12 @@ solution "demboyz"
|
||||
"../demboyz/**.h",
|
||||
"../demboyz/**.cpp",
|
||||
"../external/**.h",
|
||||
"../external/**.cpp"
|
||||
"../external/**.cpp",
|
||||
"../external/**.c"
|
||||
}
|
||||
includedirs
|
||||
{
|
||||
"../external/json_checker/include",
|
||||
"../external/sourcesdk/include",
|
||||
"../external/rapidjson-1.0.2/include",
|
||||
"../demboyz"
|
||||
|
Loading…
Reference in New Issue
Block a user