From ac0e2b606f35a43328c2df0280a1612ed19d0dbc Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Mon, 7 May 2007 12:31:42 +0000 Subject: r22741: Add MSVC-specific pragma's for Wireshark. Patch from Ronnie. (This used to be commit 40d6235b2491462bae480415e2ae075c041b3b7e) --- source4/pidl/lib/Parse/Pidl/Wireshark/NDR.pm | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'source4/pidl/lib/Parse/Pidl') 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 \n"; $self->{res}->{headers} .= "#include \n"; $self->{res}->{headers} .= "#include \n\n"; -- cgit