Work around bug in msvc 2005 code analysis.

http://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=99397

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@7005 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Michael Jerris 2007-12-28 21:04:05 +00:00
parent e87a87395e
commit 5407426702
1 changed files with 8 additions and 0 deletions

View File

@ -73,7 +73,15 @@
#include <fcntl.h> #include <fcntl.h>
#ifdef _MSC_VER #ifdef _MSC_VER
#include <Winsock2.h> #include <Winsock2.h>
#if _MSC_VER < 1500
/* work around bug in msvc 2005 code analysis http://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=99397 */
#pragma warning(push)
#pragma warning(disable:6011)
#include <Ws2tcpip.h> #include <Ws2tcpip.h>
#pragma warning(pop)
#else
#include <Ws2tcpip.h>
#endif
#else #else
#include <strings.h> #include <strings.h>
#endif #endif