Skip to content

Commit

Permalink
configure.ac: search for new json.hpp version 3,
Browse files Browse the repository at this point in the history
update also bundled json.hpp copy to v3.1.2
  • Loading branch information
LocutusOfBorg committed Jul 31, 2018
1 parent d165714 commit 4fecb1f
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_appdata_DATA = 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 507 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 4fecb1f

Please sign in to comment.