From c1f36d44f232394ebf7ec518863a1b32efd95248 Mon Sep 17 00:00:00 2001 From: Alek Mosingiewicz Date: Tue, 21 Aug 2018 16:45:27 +0200 Subject: [PATCH] experimental/variant for Apple compilers. --- .travis.yml | 2 +- include/chaiscript/utility/json.hpp | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 73cad2a2..622f3a3c 100644 --- a/.travis.yml +++ b/.travis.yml @@ -45,7 +45,7 @@ matrix: env: CLANG_VER="5.0" - os: osx compiler: clang - #sx_image: xcode10 + osx_image: xcode10 env: CLANG_VER="5.0" CMAKE_OPTIONS="-D DYNLOAD_ENABLED:BOOL=FALSE -D MULTITHREAD_SUPPORT_ENABLED:BOOL=FALSE -D USE_STD_MAKE_SHARED:BOOL=TRUE" BUILD_ONLY=1 env: diff --git a/include/chaiscript/utility/json.hpp b/include/chaiscript/utility/json.hpp index 4943bcb4..60eed27d 100644 --- a/include/chaiscript/utility/json.hpp +++ b/include/chaiscript/utility/json.hpp @@ -18,7 +18,12 @@ #include #include #include -#include +#ifdef __APPLE__ + #include +#else + #include +#endif + #include "../chaiscript_defines.hpp" #include "quick_flat_map.hpp"