From 8da2158781f68cc5d916f4638f35db63e73a8d5d Mon Sep 17 00:00:00 2001 From: artemp Date: Thu, 3 Jan 2013 16:23:36 +0000 Subject: [PATCH] + allow configure BIGINT support (default: yes) --- SConstruct | 7 ++++++- include/mapnik/value.hpp | 2 -- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/SConstruct b/SConstruct index 4f63ec52f..868de44b8 100644 --- a/SConstruct +++ b/SConstruct @@ -366,6 +366,7 @@ opts.AddVariables( BoolVariable('PGSQL2SQLITE', 'Compile and install a utility to convert postgres tables to sqlite', 'False'), BoolVariable('COLOR_PRINT', 'Print build status information in color', 'True'), BoolVariable('SAMPLE_INPUT_PLUGINS', 'Compile and install sample plugins', 'False'), + BoolVariable('BIGINT', 'Compile support for 64-bit integers in mapnik::value', 'True'), ) # variables to pickle after successful configure step @@ -429,7 +430,8 @@ pickle_store = [# Scons internal variables 'CAIROMM_CPPPATHS', 'SVG_RENDERER', 'SQLITE_LINKFLAGS', - 'BOOST_LIB_VERSION_FROM_HEADER' + 'BOOST_LIB_VERSION_FROM_HEADER', + 'BIGINT' ] # Add all other user configurable options to pickle pickle_store @@ -1115,6 +1117,9 @@ if not preconfigured: # expression_string.cpp and map.cpp use fromUTF* function only available in >= ICU 4.2 env['MISSING_DEPS'].append(env['ICU_LIB_NAME']) + if env['BIGINT']: + env.Append(CXXFLAGS = '-DBIGINT') + if env['THREADING'] == 'multi': thread_flag = thread_suffix else: diff --git a/include/mapnik/value.hpp b/include/mapnik/value.hpp index 3989d6a56..e6ab8e87b 100644 --- a/include/mapnik/value.hpp +++ b/include/mapnik/value.hpp @@ -107,8 +107,6 @@ struct value_null } }; -#define BIGINT - #ifdef BIGINT typedef long long value_integer; #else