Module: gas-preprocessor Branch: master Commit: f2dda1055a39b7d65a4470b88f36818363a88e99
Author: Martin Storsjo <[email protected]> Committer: Martin Storsjo <[email protected]> Date: Sat Oct 14 14:11:35 2017 +0300 Define _WIN32 while preprocessing for armasm --- gas-preprocessor.pl | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/gas-preprocessor.pl b/gas-preprocessor.pl index 456ee24..b31a750 100755 --- a/gas-preprocessor.pl +++ b/gas-preprocessor.pl @@ -98,6 +98,11 @@ if ($as_type eq "armasm") { $preprocess_c_cmd[0] = "cpp"; push(@preprocess_c_cmd, "-undef"); + # Normally a preprocessor for windows would predefine _WIN32, + # but we're using any generic system-agnostic preprocessor "cpp" + # with -undef (to avoid getting predefined variables from the host + # system in cross compilation cases), so manually define it here. + push(@preprocess_c_cmd, "-D_WIN32"); @preprocess_c_cmd = grep ! /^-nologo$/, @preprocess_c_cmd; # Remove -ignore XX parameter pairs from preprocess_c_cmd _______________________________________________ libav-commits mailing list [email protected] https://lists.libav.org/mailman/listinfo/libav-commits
