Ensure picojson.h is included earlier in tests and add note about header include ordering to README

This commit is contained in:
Tristan Penman 2015-05-12 08:21:14 +10:00
parent e1a59c09ba
commit ba05594f53
3 changed files with 6 additions and 0 deletions

View File

@ -32,6 +32,8 @@ Valijson supports JSON documents loaded using JsonCpp, RapidJson, Boost Property
Version of JsonCpp going back to 0.5.0 should also work correctly, but versions from 1.0 onwards have not yet been tested.
Also note that when using PicoJSON, it may be necessary to include the `picojson.h` before other headers to ensure that the appropriate macros have been enabled.
Other versions of these libraries may work, but have not been tested.
## JSON Schema Support ##

View File

@ -1,3 +1,5 @@
#include <picojson.h>
#include <boost/foreach.hpp>
#include <boost/lexical_cast.hpp>

View File

@ -1,3 +1,5 @@
#include <picojson.h>
#include <iostream>
#include <boost/foreach.hpp>