summaryrefslogtreecommitdiff
path: root/pidl
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2009-02-09 23:29:41 +0100
committerJelmer Vernooij <jelmer@samba.org>2009-02-09 23:29:41 +0100
commit69fff2d750fff7742c437d89831804afd674d9d1 (patch)
treebfd381f605897e952dc12645da9c3c36d67e67fa /pidl
parent73c603562fe22727d9fc313446e1d899038097f5 (diff)
downloadsamba-69fff2d750fff7742c437d89831804afd674d9d1.tar.gz
samba-69fff2d750fff7742c437d89831804afd674d9d1.tar.bz2
samba-69fff2d750fff7742c437d89831804afd674d9d1.zip
Revert "Fix errornos assumption that all compilers are gcc"
This breaks (some?) files with gcc. This reverts commit 98a4327b19e83ffad4e0be7e8895fdbd9e48d49f.
Diffstat (limited to 'pidl')
-rw-r--r--pidl/idl.yp2
-rw-r--r--pidl/lib/Parse/Pidl/IDL.pm2
2 files changed, 2 insertions, 2 deletions
diff --git a/pidl/idl.yp b/pidl/idl.yp
index 7838420e3f..d557590494 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 b2b5e3d7b3..06d54fb4b5 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);