When building current 3.2 and Main branches there is an issue with VS2008

In the module sipXtackLib, the file res_send.c includes
resparse/poll.h. This barfs VS2008 defines many of the
values in this file.

If I comment out the file, it builds OK.
I am not sure the nicest way to fix this.

Secondly
Checking out the current main branch there is an error
that causes the code to note #define snprintf to _snprintf.

I have attached a patch.

Regards

Paul



Index: sipXportLib/include/os/OsDefs.h
===================================================================
--- sipXportLib/include/os/OsDefs.h     (revision 11073)
+++ sipXportLib/include/os/OsDefs.h     (working copy)
@@ -53,10 +53,14 @@
 // Even now, with VS2008, they aren't compliant, however visual studio
 // has gone about and defined vsnprintf.
 // 
http://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=101293
-#if defined(WIN32) && defined(_MSC_VER) && (_MSC_VER < 1500)
+
+#if defined(WIN32) && defined(_MSC_VER) 
 #  define snprintf _snprintf
+
+#if (_MSC_VER < 1500)
 #  define vsnprintf _vsnprintf
 #endif
+#endif
 
 #if defined(va_copy)
 #elif defined(__va_copy)
_______________________________________________
sipxtapi-dev mailing list
[email protected]
List Archive: http://list.sipfoundry.org/archive/sipxtapi-dev/

Reply via email to