diff --git a/SConscript b/SConscript index 0ab4e7a..8341dd8 100644 --- a/SConscript +++ b/SConscript @@ -183,21 +183,21 @@ DEFS = {} failure = False if not conf.CheckBison(): - print 'error: no usable bison version found' + print ('error: no usable bison version found') failure = True if not conf.CheckRe2c(): - print 'error: no usable re2c version found' + print ('error: no usable re2c version found') failure = True if not conf.CheckCXX(): - print 'error: no usable C++ compiler found' - print "Please check the log file for further information: " + log_file + print ('error: no usable C++ compiler found') + print ("Please check the log file for further information: " + log_file) Exit(1) if not conf.CheckSHCXX(): - print 'error: no usable (shared) C++ compiler found' - print "Please check the log file for further information: " + log_file + print ('error: no usable (shared) C++ compiler found') + print ("Please check the log file for further information: " + log_file) Exit(1) if not conf.CheckThreadLocal(): @@ -211,7 +211,7 @@ if env['WITH_PYTHON'] == "auto": DEFS["WITH_PYTHON"] = 1 elif env['WITH_PYTHON']: if not conf.CheckLibs("python", env['WITH_PYTHON'], "Python.h"): - print 'error: python library not found' + print ('error: python library not found') failure = True else: with_python = True @@ -224,7 +224,7 @@ if env['WITH_LUA'] == "auto": DEFS["WITH_LUA"] = 1 elif env['WITH_LUA']: if not conf.CheckLibs("lua", env['WITH_LUA'], "lua.hpp"): - print 'error: lua library not found' + print ('error: lua library not found') failure = True else: with_lua = True @@ -263,7 +263,7 @@ if env['WITH_THREADS'] is not None: elif env['WITH_THREADS'] == "windows": pass # nohing to do else: - print 'error: unknown thread model' + print ('error: unknown thread model') failure = True @@ -273,7 +273,7 @@ claspEnv.Append(CPPDEFINES=DEFS) # {{{1 Check configuration if failure: - print "Please check the log file for further information: " + log_file + print ("Please check the log file for further information: " + log_file) Exit(1) # {{{1 Opts: Library diff --git a/libprogram_opts/src/string_convert.cpp b/libprogram_opts/src/string_convert.cpp index 5e35424..16217de 100644 --- a/libprogram_opts/src/string_convert.cpp +++ b/libprogram_opts/src/string_convert.cpp @@ -53,7 +53,7 @@ typedef _locale_t locale_t; #define freelocale _free_locale inline locale_t default_locale() { return _create_locale(LC_ALL, "C"); } #else -#include +#include inline locale_t default_locale() { return newlocale(LC_ALL_MASK, "C", 0); } #endif static struct LocaleHolder {