From 1e9301a713ce1905edaf8326879d2b100a5ea6d1 Mon Sep 17 00:00:00 2001 From: Tim Mayberry Date: Mon, 22 Jul 2013 11:56:18 +1000 Subject: [PATCH] Define PLATFORM_WINDOWS and COMPILER_MINGW when dist target is set to mingw --- wscript | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/wscript b/wscript index 3088319def..eefa532b1e 100644 --- a/wscript +++ b/wscript @@ -618,6 +618,10 @@ def configure(conf): if Options.options.dist_target == 'mingw': Options.options.fpu_optimization = False + conf.env.append_value('CFLAGS', '-DPLATFORM_WINDOWS') + conf.env.append_value('CFLAGS', '-DCOMPILER_MINGW') + conf.env.append_value('CXXFLAGS', '-DPLATFORM_WINDOWS') + conf.env.append_value('CXXFLAGS', '-DCOMPILER_MINGW') conf.env.append_value('LIB', 'pthreadGC2') # needed for at least libsmf conf.check_cc(function_name='htonl', header_name='winsock2.h', lib='ws2_32')