Skip to content

Commit 8f5ddcf

Browse files
committed
Added cstring for memcpy(), as suggested by [email protected] . This allows gcc-4 to compile. Removed doxygen from SConstruct, since it is now broken; I have been unable to get it to work with either scons 0.97 or scons 2.1; hopefully someone else can get that working again.
1 parent 230b1f6 commit 8f5ddcf

3 files changed

Lines changed: 7 additions & 5 deletions

File tree

SConstruct

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,6 +250,6 @@ env.Alias( 'src-dist', srcdist_cmd )
250250

251251
buildProjectInDirectory( 'src/jsontestrunner' )
252252
buildProjectInDirectory( 'src/lib_json' )
253-
buildProjectInDirectory( 'doc' )
253+
#buildProjectInDirectory( 'doc' ) # THIS IS BROKEN.
254254
#print env.Dump()
255255

src/lib_json/json_reader.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
#include <json/reader.h>
22
#include <json/value.h>
33
#include <utility>
4-
#include <stdio.h>
5-
#include <assert.h>
4+
#include <cstdio>
5+
#include <cassert>
6+
#include <cstring>
67
#include <iostream>
78
#include <stdexcept>
89

src/lib_json/json_value.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,12 @@
33
#include <json/writer.h>
44
#include <utility>
55
#include <stdexcept>
6-
#include "assert.h"
6+
#include <cstring>
7+
#include <cassert>
78
#ifdef JSON_USE_CPPTL
89
# include <cpptl/conststring.h>
910
#endif
10-
#include <stddef.h> // size_t
11+
#include <cstddef> // size_t
1112
#ifndef JSON_USE_SIMPLE_INTERNAL_ALLOCATOR
1213
# include "json_batchallocator.h"
1314
#endif // #ifndef JSON_USE_SIMPLE_INTERNAL_ALLOCATOR

0 commit comments

Comments
 (0)