Skip to content

Commit

Permalink
Update JSON for Modern C++ to version 3
Browse files Browse the repository at this point in the history
* configure.ac: search for new json.hpp version 3
* update also json.hpp copy to v3.6.1
  • Loading branch information
LocutusOfBorg authored and vslavik committed Apr 21, 2019
1 parent 94c451c commit 2bea91e
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ dist_metainfo_DATA = net.poedit.Poedit.appdata.xml

EXTRA_DIST = \
deps/json/LICENSE.MIT \
deps/json/src/json.hpp \
deps/json/single_include/nlohmann/json.hpp \
deps/pugixml/LICENSE.md \
deps/pugixml/src/pugiconfig.hpp \
deps/pugixml/src/pugixml.cpp \
Expand Down
2 changes: 1 addition & 1 deletion configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ AS_IF([test "x$have_cpprest" = "xyes"],
])
AM_CONDITIONAL([HAVE_CPPREST], [test "x$have_cpprest" != "xno"])

AC_CHECK_HEADERS([json.hpp])
AC_CHECK_HEADERS([nlohmann/json.hpp])

WX_CONFIG_CHECK([3.0.3], [WXFOUND=1], [WXFOUND=0], [$WXLIBS_USED], [--unicode])

Expand Down
2 changes: 1 addition & 1 deletion deps/json
Submodule json updated 920 files
6 changes: 3 additions & 3 deletions src/json.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,10 @@

#include "str_helpers.h"

#ifdef HAVE_JSON_HPP
#include <json.hpp>
#ifdef HAVE_NLOHMANN_JSON_HPP
#include <nlohmann/json.hpp>
#else
#include "../deps/json/src/json.hpp"
#include "../deps/json/single_include/nlohmann/json.hpp"
#endif

using json = nlohmann::json;
Expand Down

0 comments on commit 2bea91e

Please sign in to comment.