summaryrefslogtreecommitdiff
path: root/source4/pidl/lib/Parse/Pidl
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2007-05-07 12:31:42 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:52:08 -0500
commitac0e2b606f35a43328c2df0280a1612ed19d0dbc (patch)
tree59758a825ab3954663935a41c69adb924d199d65 /source4/pidl/lib/Parse/Pidl
parent0ad4c05508261c21e956ffcda67a112f02686ed6 (diff)
downloadsamba-ac0e2b606f35a43328c2df0280a1612ed19d0dbc.tar.gz
samba-ac0e2b606f35a43328c2df0280a1612ed19d0dbc.tar.bz2
samba-ac0e2b606f35a43328c2df0280a1612ed19d0dbc.zip
r22741: Add MSVC-specific pragma's for Wireshark. Patch from Ronnie.
(This used to be commit 40d6235b2491462bae480415e2ae075c041b3b7e)
Diffstat (limited to 'source4/pidl/lib/Parse/Pidl')
-rw-r--r--source4/pidl/lib/Parse/Pidl/Wireshark/NDR.pm8
1 files changed, 8 insertions, 0 deletions
diff --git a/source4/pidl/lib/Parse/Pidl/Wireshark/NDR.pm b/source4/pidl/lib/Parse/Pidl/Wireshark/NDR.pm
index ea3f0db961..1fb9c4034f 100644
--- a/source4/pidl/lib/Parse/Pidl/Wireshark/NDR.pm
+++ b/source4/pidl/lib/Parse/Pidl/Wireshark/NDR.pm
@@ -919,6 +919,14 @@ sub Parse($$$$$)
$self->{res}->{headers} .= "#ifdef HAVE_CONFIG_H\n";
$self->{res}->{headers} .= "#include \"config.h\"\n";
$self->{res}->{headers} .= "#endif\n\n";
+
+ $res{headers} .= "#ifdef _MSC_VER\n";
+ $res{headers} .= "#pragma warning(disable:4005)\n";
+ $res{headers} .= "#pragma warning(disable:4013)\n";
+ $res{headers} .= "#pragma warning(disable:4018)\n";
+ $res{headers} .= "#pragma warning(disable:4101)\n";
+ $res{headers} .= "#endif\n\n";
+
$self->{res}->{headers} .= "#include <glib.h>\n";
$self->{res}->{headers} .= "#include <string.h>\n";
$self->{res}->{headers} .= "#include <epan/packet.h>\n\n";