From 458a9fe4c5650b49c0b8d1e5b9bf14fcea38728f Mon Sep 17 00:00:00 2001 From: Andrew Bell Date: Sun, 25 Feb 2018 10:39:57 -0500 Subject: [PATCH] Json (#1817) * Don't include incorrect JSON header file. * Don't force big ints to be long long - use natural 64-bit type. --- vendor/arbiter/CMakeLists.txt | 2 +- vendor/jsoncpp/dist/json/json.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/vendor/arbiter/CMakeLists.txt b/vendor/arbiter/CMakeLists.txt index 23bbbc6ee0..23db08442a 100644 --- a/vendor/arbiter/CMakeLists.txt +++ b/vendor/arbiter/CMakeLists.txt @@ -13,7 +13,7 @@ endif() PDAL_ADD_FREE_LIBRARY(${PDAL_ARBITER_LIB_NAME} STATIC arbiter.cpp) target_include_directories(${PDAL_ARBITER_LIB_NAME} PRIVATE - ${PDAL_VENDOR_DIR}/jsoncpp/dist) + ${PDAL_JSONCPP_INCLUDE_DIR}) target_link_libraries(${PDAL_ARBITER_LIB_NAME}) # # Arbiter is built static but is included in a shared lib. diff --git a/vendor/jsoncpp/dist/json/json.h b/vendor/jsoncpp/dist/json/json.h index 97429c1ee6..06d3147259 100644 --- a/vendor/jsoncpp/dist/json/json.h +++ b/vendor/jsoncpp/dist/json/json.h @@ -209,8 +209,8 @@ typedef unsigned int LargestUInt; typedef __int64 Int64; typedef unsigned __int64 UInt64; #else // if defined(_MSC_VER) // Other platforms, use long long -typedef long long int Int64; -typedef unsigned long long int UInt64; +typedef int64_t Int64; +typedef uint64_t UInt64; #endif // if defined(_MSC_VER) typedef Int64 LargestInt; typedef UInt64 LargestUInt;