Skip to content

Commit

Permalink
Merge pull request #122 from Optiligence/master
Browse files Browse the repository at this point in the history
use c++ includes for the int64 support
  • Loading branch information
kazuho authored Jan 2, 2020
2 parents 8ba7113 + 256ed69 commit 5440d44
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion picojson.h
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,14 @@ extern "C" {
// experimental support for int64_t (see README.mkdn for detail)
#ifdef PICOJSON_USE_INT64
#define __STDC_FORMAT_MACROS
#include <errno.h>
#include <cerrno>
#if __cplusplus >= 201103L
#include <cinttypes>
#else
extern "C" {
#include <inttypes.h>
}
#endif
#endif

// to disable the use of localeconv(3), set PICOJSON_USE_LOCALE to 0
Expand Down

0 comments on commit 5440d44

Please sign in to comment.