Skip to content

Commit

Permalink
Added cstring for memcpy(), as suggested by sebastien.vincent@turnser…
Browse files Browse the repository at this point in the history
…ver.org . 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.
  • Loading branch information
cdunn2001 committed May 11, 2009
1 parent 230b1f6 commit 8f5ddcf
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion SConstruct
Original file line number Diff line number Diff line change
Expand Up @@ -250,6 +250,6 @@ env.Alias( 'src-dist', srcdist_cmd )

buildProjectInDirectory( 'src/jsontestrunner' )
buildProjectInDirectory( 'src/lib_json' )
buildProjectInDirectory( 'doc' )
#buildProjectInDirectory( 'doc' ) # THIS IS BROKEN.
#print env.Dump()

5 changes: 3 additions & 2 deletions src/lib_json/json_reader.cpp
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
#include <json/reader.h>
#include <json/value.h>
#include <utility>
#include <stdio.h>
#include <assert.h>
#include <cstdio>
#include <cassert>
#include <cstring>
#include <iostream>
#include <stdexcept>

Expand Down
5 changes: 3 additions & 2 deletions src/lib_json/json_value.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,12 @@
#include <json/writer.h>
#include <utility>
#include <stdexcept>
#include "assert.h"
#include <cstring>
#include <cassert>
#ifdef JSON_USE_CPPTL
# include <cpptl/conststring.h>
#endif
#include <stddef.h> // size_t
#include <cstddef> // size_t
#ifndef JSON_USE_SIMPLE_INTERNAL_ALLOCATOR
# include "json_batchallocator.h"
#endif // #ifndef JSON_USE_SIMPLE_INTERNAL_ALLOCATOR
Expand Down

0 comments on commit 8f5ddcf

Please sign in to comment.