[Freeswitch-svn] [commit] r4892 - in freeswitch/trunk/src: . include

Freeswitch SVN mikej at freeswitch.org
Sun Apr 8 12:16:00 EDT 2007


Author: mikej
Date: Sun Apr  8 12:16:00 2007
New Revision: 4892

Modified:
   freeswitch/trunk/src/include/switch.h
   freeswitch/trunk/src/switch_core.c
   freeswitch/trunk/src/switch_rtp.c

Log:
fix windows build

Modified: freeswitch/trunk/src/include/switch.h
==============================================================================
--- freeswitch/trunk/src/include/switch.h	(original)
+++ freeswitch/trunk/src/include/switch.h	Sun Apr  8 12:16:00 2007
@@ -59,7 +59,11 @@
 #include <setjmp.h>
 #include <ctype.h>
 #include <fcntl.h>
+#ifdef _MSC_VER
+#include <string.h>
+#else
 #include <strings.h>
+#endif
 #include <sys/stat.h>
 #include <limits.h>
 #include <sys/types.h>

Modified: freeswitch/trunk/src/switch_core.c
==============================================================================
--- freeswitch/trunk/src/switch_core.c	(original)
+++ freeswitch/trunk/src/switch_core.c	Sun Apr  8 12:16:00 2007
@@ -447,10 +447,10 @@
 					switch_core_session_limit(atoi(val));
 				}
 				else if (!strcasecmp(var, "rtp-start-port")) {
-					switch_rtp_set_start_port(atoi(val));
+					switch_rtp_set_start_port((switch_port_t)atoi(val));
 				}
 				else if (!strcasecmp(var, "rtp-end-port")) {
-					switch_rtp_set_end_port(atoi(val));
+					switch_rtp_set_end_port((switch_port_t)atoi(val));
 				}
 			}
 		}

Modified: freeswitch/trunk/src/switch_rtp.c
==============================================================================
--- freeswitch/trunk/src/switch_rtp.c	(original)
+++ freeswitch/trunk/src/switch_rtp.c	Sun Apr  8 12:16:00 2007
@@ -857,7 +857,7 @@
 				
 				rtp_session->recv_msg.header.pt = (uint32_t) rtp_session->cng_pt ? rtp_session->cng_pt : SWITCH_RTP_CNG_PAYLOAD;
 				*flags |= SFF_CNG;
-				*payload_type = rtp_session->recv_msg.header.pt;
+				*payload_type = (switch_payload_t)rtp_session->recv_msg.header.pt;
 				return 2 + rtp_header_len;
 			}
 		}
@@ -877,7 +877,7 @@
 
 			rtp_session->recv_msg.header.pt = (uint32_t) rtp_session->cng_pt ? rtp_session->cng_pt : SWITCH_RTP_CNG_PAYLOAD;
 			*flags |= SFF_CNG;
-			*payload_type = rtp_session->recv_msg.header.pt;
+			*payload_type = (switch_payload_t)rtp_session->recv_msg.header.pt;
 			return 2 + rtp_header_len;
 		}
 		



More information about the Freeswitch-svn mailing list