"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "include/osip2/osip_time.h" between
libosip2-5.2.0.tar.gz and libosip2-5.2.1.tar.gz

About: The GNU oSIP library is an implementation of SIP (RFC3261).

osip_time.h  (libosip2-5.2.0):osip_time.h  (libosip2-5.2.1)
skipping to change at line 65 skipping to change at line 65
#else #else
#define osip_timercmp(tvp, uvp, cmp) timercmp(tvp, uvp, cmp) #define osip_timercmp(tvp, uvp, cmp) timercmp(tvp, uvp, cmp)
#endif #endif
#if !defined(timerclear) #if !defined(timerclear)
#define osip_timerclear(tvp) (tvp)->tv_sec = (tvp)->tv_usec = 0 #define osip_timerclear(tvp) (tvp)->tv_sec = (tvp)->tv_usec = 0
#else #else
#define osip_timerclear(tvp) timerclear(tvp) #define osip_timerclear(tvp) timerclear(tvp)
#endif #endif
#if !defined(timersub)
#define osip_timersub(a, b, result) \
do { \
(result)->tv_sec = (a)->tv_sec - (b)->tv_sec; \
(result)->tv_usec = (a)->tv_usec - (b)->tv_usec; \
if ((result)->tv_usec < 0) { \
--(result)->tv_sec; \
(result)->tv_usec += 1000000; \
} \
} while (0)
#else
#define osip_timersub(a, b, result) timersub(a, b, result)
#endif
int osip_gettimeofday(struct timeval *tp, void *tz); int osip_gettimeofday(struct timeval *tp, void *tz);
time_t osip_getsystemtime(time_t *t); time_t osip_getsystemtime(time_t *t);
void osip_compensatetime(void); void osip_compensatetime(void);
#ifdef __cplusplus #ifdef __cplusplus
} }
#endif #endif
#endif #endif
 End of changes. 1 change blocks. 
0 lines changed or deleted 14 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)