Commit 897b2e3e authored by Michael Jerris's avatar Michael Jerris

Removes some macro assumptions including sofia header files

darcs-hash:20060825153043-11237-a1c426a0dde38e984ede841b9d650ef07635d282.gz
parent 9027551f
......@@ -64,11 +64,11 @@ sdptag_session_ref, sdptag_session_vr(&(x))
/* Functions for typesafe parameter passing */
#if SU_HAVE_INLINE
static inline
su_inline
tag_value_t sdptag_session_v(struct sdp_session_s const *v) {
return (tag_value_t)v;
}
static inline
su_inline
tag_value_t sdptag_session_vr(struct sdp_session_s const **vp) {
return (tag_value_t)vp;
}
......
......@@ -59,9 +59,9 @@ SOFIAPUBVAR tag_typedef_t urltag_url_ref;
#define URLTAG_URL_REF(u) urltag_url_ref, urltag_url_vr(&(u))
#if SU_HAVE_INLINE
static inline
su_inline
tag_value_t urltag_url_v(void const *v) { return (tag_value_t)v; }
static inline
su_inline
tag_value_t urltag_url_vr(url_string_t const **vp) { return(tag_value_t)vp; }
#else
#define urltag_url_v(v) (tag_value_t)(v)
......
......@@ -89,10 +89,18 @@
#define SU_S8_C(i) (SU_S8_T)(i)
#define SU_U8_C(i) (SU_U8_T)(i ## U)
#ifndef strcasecmp
#define strcasecmp _stricmp
#endif
#ifndef strncasecmp
#define strncasecmp _strnicmp
#endif
#ifndef snprintf
#define snprintf _snprintf
#endif
#ifndef vsnprintf
#define vsnprintf _vsnprintf
#endif
#define srandom(x) srand((x))
#define random() rand()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment