fix inline fun on windows.

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4855 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Michael Jerris 2007-04-05 10:14:20 +00:00
parent 90d2d377e2
commit 225a063057

View File

@ -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 @@ static inline int ldl_jid_domcmp(char *id_a, char *id_b)
}
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;