[Freeswitch-svn] [commit] r4855 - freeswitch/trunk/libs/libdingaling/src

Freeswitch SVN mikej at freeswitch.org
Thu Apr 5 06:14:20 EDT 2007


Author: mikej
Date: Thu Apr  5 06:14:20 2007
New Revision: 4855

Modified:
   freeswitch/trunk/libs/libdingaling/src/libdingaling.h

Log:
fix inline fun on windows.

Modified: freeswitch/trunk/libs/libdingaling/src/libdingaling.h
==============================================================================
--- freeswitch/trunk/libs/libdingaling/src/libdingaling.h	(original)
+++ freeswitch/trunk/libs/libdingaling/src/libdingaling.h	Thu Apr  5 06:14:20 2007
@@ -38,8 +38,9 @@
   \{
 */
 /* OMG */
-#ifdef WIN32
+#ifdef _MSC_VER
 #define __LDL_FUNC__ __FUNCTION__
+#define inline __inline
 #else
 #define __LDL_FUNC__ (const char *)__func__
 #endif
@@ -203,7 +204,7 @@
 	}
 
     if (id_a_host && id_b_host) {
-        int id_a_len = 0, id_b_len = 0, len = 0;
+        size_t id_a_len = 0, id_b_len = 0, len = 0;
 
         if ((id_a_r = strchr(id_a_host, '/'))) {
             id_a_len = id_a_r - id_a_host;



More information about the Freeswitch-svn mailing list