summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pidl/idl.yp2
-rw-r--r--pidl/lib/Parse/Pidl/IDL.pm2
-rw-r--r--source4/build/pasn1/asn1.yp2
3 files changed, 3 insertions, 3 deletions
diff --git a/pidl/idl.yp b/pidl/idl.yp
index 7838420e3fc..d557590494e 100644
--- a/pidl/idl.yp
+++ b/pidl/idl.yp
@@ -490,7 +490,7 @@ sub parse_file($$)
$cpp = "cpp";
}
my $includes = join('',map { " -I$_" } @$incdirs);
- my $data = `$cpp -D__PIDL__$includes $filename`;
+ my $data = `$cpp -D__PIDL__$includes -xc $filename`;
$/ = $saved_delim;
return parse_string($data, $filename);
diff --git a/pidl/lib/Parse/Pidl/IDL.pm b/pidl/lib/Parse/Pidl/IDL.pm
index b2b5e3d7b36..06d54fb4b5f 100644
--- a/pidl/lib/Parse/Pidl/IDL.pm
+++ b/pidl/lib/Parse/Pidl/IDL.pm
@@ -2525,7 +2525,7 @@ sub parse_file($$)
$cpp = "cpp";
}
my $includes = join('',map { " -I$_" } @$incdirs);
- my $data = `$cpp -D__PIDL__$includes $filename`;
+ my $data = `$cpp -D__PIDL__$includes -xc $filename`;
$/ = $saved_delim;
return parse_string($data, $filename);
diff --git a/source4/build/pasn1/asn1.yp b/source4/build/pasn1/asn1.yp
index 24aef05b403..7fc834ff2b7 100644
--- a/source4/build/pasn1/asn1.yp
+++ b/source4/build/pasn1/asn1.yp
@@ -296,7 +296,7 @@ sub parse_asn1($$)
if (! defined $cpp) {
$cpp = "cpp"
}
- my $data = `$cpp $filename`;
+ my $data = `$cpp -xc $filename`;
$/ = $saved_delim;
$self->YYData->{INPUT} = $data;