Module: gas-preprocessor Branch: master Commit: 23b139ead7e8e43b1a0f9e4432fcb1bc9390b54f
Author: Martin Storsjo <[email protected]> Committer: Martin Storsjo <[email protected]> Date: Fri Oct 13 11:06:46 2017 +0300 Pass -undef to cpp instead of undefining __ELF__ and __MACH__ --- gas-preprocessor.pl | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/gas-preprocessor.pl b/gas-preprocessor.pl index afdfc9e..6aae65d 100755 --- a/gas-preprocessor.pl +++ b/gas-preprocessor.pl @@ -97,8 +97,7 @@ if (grep /\.c$/, @gcc_cmd) { if ($as_type eq "armasm") { $preprocess_c_cmd[0] = "cpp"; - push(@preprocess_c_cmd, "-U__ELF__"); - push(@preprocess_c_cmd, "-U__MACH__"); + push(@preprocess_c_cmd, "-undef"); @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
