commit | 95f120f68eee1215e17b6c4110553fdb6cb51f4d | [log] [tgz] |
---|---|---|
author | Christopher Dunn <cdunn2001@gmail.com> | Sun Feb 07 11:09:41 2016 -0600 |
committer | Christopher Dunn <cdunn2001@gmail.com> | Sun Feb 07 11:09:41 2016 -0600 |
tree | db22152fcc6f59d4c944ae49b5c613bdf9346788 | |
parent | 9a4b1e39bf5a5dec9b7bbfe64fbbf5982902d60b [diff] [blame] |
For gcc>=6 JSON_USE_INT64_DOUBLE_CONVERSION
diff --git a/include/json/config.h b/include/json/config.h index 1b0581f..51027dd 100644 --- a/include/json/config.h +++ b/include/json/config.h
@@ -114,6 +114,10 @@ #define JSONCPP_DEPRECATED(message) #endif // if !defined(JSONCPP_DEPRECATED) +#if __GNUC__ >= 6 +# define JSON_USE_INT64_DOUBLE_CONVERSION 1 +#endif + namespace Json { typedef int Int; typedef unsigned int UInt;