diff options
author | Rogier-5 <Rogier-5@users.noreply.github.com> | 2016-08-10 12:10:00 +0200 |
---|---|---|
committer | est31 <est31@users.noreply.github.com> | 2016-08-10 12:10:00 +0200 |
commit | 4503b5097f99d2806763650f33d8ef3b49f77ce4 (patch) | |
tree | d682a8b3ac13c79ece798ae05b9546ecfa770382 /src/script/lua_api | |
parent | 058a869b70072aba8baea47e359c45e82daaf152 (diff) | |
download | minetest-4503b5097f99d2806763650f33d8ef3b49f77ce4.tar.gz minetest-4503b5097f99d2806763650f33d8ef3b49f77ce4.tar.bz2 minetest-4503b5097f99d2806763650f33d8ef3b49f77ce4.zip |
Fixes for compiling with a newer (system) jsoncpp (#4429)
* Move included json code to jsoncpp subdirectory
This is needed to avoid having to specify the minetest src directory
as a system include when fixing the json includes.
* Fix json includes
They used "", so that the compiler searches the project's directory
first. The result was that when compiling with a system jsoncpp,
the project's own version of json.h was still included, instead of
the system version.
The includes now use <>, so a system location, or one specified with
'-Ilocation' is searched only.
* Fix for jsoncpp deprecated function warning
When compiling with a newer version of jsoncpp (and
ENABLE_SYSTEM_JSONCPP=true), jsoncpp emits a warning
about a deprecated function that minetest uses.
Diffstat (limited to 'src/script/lua_api')
-rw-r--r-- | src/script/lua_api/l_util.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/script/lua_api/l_util.cpp b/src/script/lua_api/l_util.cpp index 95a5fc4d1..13c0d702f 100644 --- a/src/script/lua_api/l_util.cpp +++ b/src/script/lua_api/l_util.cpp @@ -23,7 +23,7 @@ with this program; if not, write to the Free Software Foundation, Inc., #include "common/c_content.h" #include "cpp_api/s_async.h" #include "serialization.h" -#include "json/json.h" +#include <json/json.h> #include "cpp_api/s_security.h" #include "porting.h" #include "debug.h" |