[Freeswitch-trunk] [commit] r7005 - freeswitch/trunk/src/include
Freeswitch SVN
mikej at freeswitch.org
Fri Dec 28 16:04:05 EST 2007
Author: mikej
Date: Fri Dec 28 16:04:05 2007
New Revision: 7005
Modified:
freeswitch/trunk/src/include/switch.h
Log:
Work around bug in msvc 2005 code analysis.
http://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=99397
Modified: freeswitch/trunk/src/include/switch.h
==============================================================================
--- freeswitch/trunk/src/include/switch.h (original)
+++ freeswitch/trunk/src/include/switch.h Fri Dec 28 16:04:05 2007
@@ -73,7 +73,15 @@
#include <fcntl.h>
#ifdef _MSC_VER
#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>
+#pragma warning(pop)
+#else
+#include <Ws2tcpip.h>
+#endif
#else
#include <strings.h>
#endif
More information about the Freeswitch-trunk
mailing list