]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
windows build fixes for last commit
authorJeff Lenk <jeff@jefflenk.com>
Wed, 15 Dec 2010 16:37:57 +0000 (10:37 -0600)
committerJeff Lenk <jeff@jefflenk.com>
Wed, 15 Dec 2010 16:37:57 +0000 (10:37 -0600)
libs/stfu/stfu.c
libs/stfu/stfu.h
src/switch_rtp.c

index 72459caad9d6f420a904854fac7ff1b6958e3b3c..4965b12e347760a0f30e488d92b8ed93a5a13a42 100644 (file)
@@ -40,6 +40,8 @@
 #ifdef _MSC_VER
 /* warning C4706: assignment within conditional expression*/
 #pragma warning(disable: 4706)
+/* warning C4996: 'strdup': The POSIX name for this item is deprecated. Instead, use the ISO C++ conformant name: _strdup. See online help for details. */
+#pragma warning(disable:4996)
 #endif
 
 #define least1(_z) (_z ? _z : 1)
@@ -641,7 +643,7 @@ stfu_frame_t *stfu_n_read_a_frame(stfu_instance_t *i)
 
 
     if (!found && i->samples_per_packet) {
-        int y;
+        uint32_t y;
         stfu_frame_t *frame = NULL;
 
         int32_t delay = i->last_rd_ts - i->cur_ts;
index f65511b5f49c6ea64cfa540e565ed750040ebcb3..ad769c62e28c290a05f95f2d5b228bd8569a6b46 100644 (file)
@@ -136,7 +136,7 @@ typedef void (*stfu_logger_t)(const char *file, const char *func, int line, int
 
 int stfu_vasprintf(char **ret, const char *fmt, va_list ap);
 
-STFU_DECLARE_DATA extern stfu_logger_t stfu_log;
+extern stfu_logger_t stfu_log;
 
 /*! Sets the logger for libstfu. Default is the null_logger */
 void stfu_global_set_logger(stfu_logger_t logger);
index 08a22ccac2f5d99ad06b6fe50d06af4338737c36..4e667fb49b9f86887bd21297da4f9055d1215af4 100644 (file)
@@ -2135,11 +2135,18 @@ static void do_flush(switch_rtp_t *rtp_session)
 
                                        flushed++;
 
+#ifdef _MSC_VER
+#pragma warning(push) /* remove this stuff when "if (0" is removed */
+#pragma warning(disable:4127)
+#endif
                                        if (0 && rtp_session->jb) {
                                                stfu_n_eat(rtp_session->jb, ntohl(rtp_session->recv_msg.header.ts), 
                                                                   rtp_session->recv_msg.header.pt,
                                                                   rtp_session->recv_msg.body, bytes - rtp_header_len);
                                        }
+#ifdef _MSC_VER
+#pragma warning(pop)
+#endif
 
                                        rtp_session->stats.inbound.raw_bytes += bytes;
                                        rtp_session->stats.inbound.flush_packet_count++;