fix stdexcept https://sourceforge.net/p/jsoncpp/bugs/68/ git-svn-id: http://jsoncpp.svn.sourceforge.net/svnroot/jsoncpp/trunk@283 1f120ed1-78a5-a849-adca-83f0a9e25bb6
diff --git a/jsoncpp/include/json/assertions.h b/jsoncpp/include/json/assertions.h index a480585..9c17461 100644 --- a/jsoncpp/include/json/assertions.h +++ b/jsoncpp/include/json/assertions.h
@@ -13,6 +13,7 @@ #endif // if !defined(JSON_IS_AMALGAMATION) #if JSON_USE_EXCEPTION +# include <stdexcept> #define JSON_ASSERT( condition ) assert( condition ); // @todo <= change this into an exception throw #define JSON_FAIL_MESSAGE( message ) throw std::runtime_error( message ); #else // JSON_USE_EXCEPTION
diff --git a/jsoncpp/include/json/version.h b/jsoncpp/include/json/version.h index 9e1efcc..d3466c0 100644 --- a/jsoncpp/include/json/version.h +++ b/jsoncpp/include/json/version.h
@@ -1,14 +1,14 @@ -// DO NOT EDIT. This file is generated by CMake from "version" -// and "version.h.in" files. -// Run CMake configure step to update it. -#ifndef JSON_VERSION_H_INCLUDED -# define JSON_VERSION_H_INCLUDED - -# define JSONCPP_VERSION_STRING "0.6.0-dev" -# define JSONCPP_VERSION_MAJOR 0 -# define JSONCPP_VERSION_MINOR 6 -# define JSONCPP_VERSION_PATCH 0 -# define JSONCPP_VERSION_QUALIFIER -dev -# define JSONCPP_VERSION_HEXA ((JSONCPP_VERSION_MAJOR << 24) | (JSONCPP_VERSION_MINOR << 16) | (JSONCPP_VERSION_PATCH << 8)) - -#endif // JSON_VERSION_H_INCLUDED +// DO NOT EDIT. This file is generated by CMake from "version" +// and "version.h.in" files. +// Run CMake configure step to update it. +#ifndef JSON_VERSION_H_INCLUDED +# define JSON_VERSION_H_INCLUDED + +# define JSONCPP_VERSION_STRING "0.6.0-dev" +# define JSONCPP_VERSION_MAJOR 0 +# define JSONCPP_VERSION_MINOR 6 +# define JSONCPP_VERSION_PATCH 0 +# define JSONCPP_VERSION_QUALIFIER -dev +# define JSONCPP_VERSION_HEXA ((JSONCPP_VERSION_MAJOR << 24) | (JSONCPP_VERSION_MINOR << 16) | (JSONCPP_VERSION_PATCH << 8)) + +#endif // JSON_VERSION_H_INCLUDED
diff --git a/jsoncpp/src/lib_json/json_reader.cpp b/jsoncpp/src/lib_json/json_reader.cpp index 4f592cd..8fd2f4c 100644 --- a/jsoncpp/src/lib_json/json_reader.cpp +++ b/jsoncpp/src/lib_json/json_reader.cpp
@@ -14,7 +14,6 @@ #include <cassert> #include <cstring> #include <istream> -#include <stdexcept> #if defined(_MSC_VER) && _MSC_VER >= 1400 // VC++ 8.0 #pragma warning( disable : 4996 ) // disable warning about strdup being deprecated.
diff --git a/jsoncpp/src/lib_json/json_value.cpp b/jsoncpp/src/lib_json/json_value.cpp index abc59c8..55a47c9 100644 --- a/jsoncpp/src/lib_json/json_value.cpp +++ b/jsoncpp/src/lib_json/json_value.cpp
@@ -14,7 +14,6 @@ #include <math.h> #include <sstream> #include <utility> -#include <stdexcept> #include <cstring> #include <cassert> #ifdef JSON_USE_CPPTL
diff --git a/jsoncpp/src/test_lib_json/main.cpp b/jsoncpp/src/test_lib_json/main.cpp index 8c5a20b..8eb4996 100644 --- a/jsoncpp/src/test_lib_json/main.cpp +++ b/jsoncpp/src/test_lib_json/main.cpp
@@ -3,9 +3,10 @@ // recognized in your jurisdiction. // See file LICENSE for detail or copy at http://jsoncpp.sourceforge.net/LICENSE +#include "jsontest.h" #include <json/config.h> #include <json/json.h> -#include "jsontest.h" +#include <stdexcept> // Make numeric limits more convenient to talk about. // Assumes int type in 32 bits.