aboutsummaryrefslogtreecommitdiff
path: root/src/jsoncpp/json
Commit message (Collapse)AuthorAge
* Fixes for compiling with a newer (system) jsoncpp (#4429)Rogier-52016-08-10
* 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.
class="hl opt">.open(advtrains.logfile, "a+") function advtrains.log (event, player, pos, data) log:write(os.date()..": "..event.." by "..player.." at "..minetest.pos_to_string(pos).." -- "..(data or "").."\n") end minetest.register_on_shutdown(function() log:close() end) end