Merge "include/asterisk/time.h: Renamed global declaration:tv" into 13

changes/68/1968/1
Joshua Colp 10 years ago committed by Gerrit Code Review
commit 573b37c658

@ -31,10 +31,12 @@
/* We have to let the compiler learn what types to use for the elements of a /* We have to let the compiler learn what types to use for the elements of a
struct timeval since on linux, it's time_t and suseconds_t, but on *BSD, struct timeval since on linux, it's time_t and suseconds_t, but on *BSD,
they are just a long. */ they are just a long.
extern struct timeval tv; note:dummy_tv_var_for_types never actually gets exported, only used as
typedef typeof(tv.tv_sec) ast_time_t; local place holder. */
typedef typeof(tv.tv_usec) ast_suseconds_t; extern struct timeval dummy_tv_var_for_types;
typedef typeof(dummy_tv_var_for_types.tv_sec) ast_time_t;
typedef typeof(dummy_tv_var_for_types.tv_usec) ast_suseconds_t;
/*! /*!
* \brief Computes the difference (in seconds) between two \c struct \c timeval instances. * \brief Computes the difference (in seconds) between two \c struct \c timeval instances.

Loading…
Cancel
Save