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

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)) ...@@ -64,11 +64,11 @@ sdptag_session_ref, sdptag_session_vr(&(x))
/* Functions for typesafe parameter passing */ /* Functions for typesafe parameter passing */
#if SU_HAVE_INLINE #if SU_HAVE_INLINE
static inline su_inline
tag_value_t sdptag_session_v(struct sdp_session_s const *v) { tag_value_t sdptag_session_v(struct sdp_session_s const *v) {
return (tag_value_t)v; return (tag_value_t)v;
} }
static inline su_inline
tag_value_t sdptag_session_vr(struct sdp_session_s const **vp) { tag_value_t sdptag_session_vr(struct sdp_session_s const **vp) {
return (tag_value_t)vp; return (tag_value_t)vp;
} }
......
...@@ -59,9 +59,9 @@ SOFIAPUBVAR tag_typedef_t urltag_url_ref; ...@@ -59,9 +59,9 @@ SOFIAPUBVAR tag_typedef_t urltag_url_ref;
#define URLTAG_URL_REF(u) urltag_url_ref, urltag_url_vr(&(u)) #define URLTAG_URL_REF(u) urltag_url_ref, urltag_url_vr(&(u))
#if SU_HAVE_INLINE #if SU_HAVE_INLINE
static inline su_inline
tag_value_t urltag_url_v(void const *v) { return (tag_value_t)v; } 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; } tag_value_t urltag_url_vr(url_string_t const **vp) { return(tag_value_t)vp; }
#else #else
#define urltag_url_v(v) (tag_value_t)(v) #define urltag_url_v(v) (tag_value_t)(v)
......
...@@ -89,10 +89,18 @@ ...@@ -89,10 +89,18 @@
#define SU_S8_C(i) (SU_S8_T)(i) #define SU_S8_C(i) (SU_S8_T)(i)
#define SU_U8_C(i) (SU_U8_T)(i ## U) #define SU_U8_C(i) (SU_U8_T)(i ## U)
#ifndef strcasecmp
#define strcasecmp _stricmp #define strcasecmp _stricmp
#endif
#ifndef strncasecmp
#define strncasecmp _strnicmp #define strncasecmp _strnicmp
#endif
#ifndef snprintf
#define snprintf _snprintf #define snprintf _snprintf
#endif
#ifndef vsnprintf
#define vsnprintf _vsnprintf #define vsnprintf _vsnprintf
#endif
#define srandom(x) srand((x)) #define srandom(x) srand((x))
#define random() rand() #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