mirror of
https://github.com/transmission/transmission
synced 2025-02-02 20:43:51 +00:00
(trunk libT) make tr_localtime_r() a public function
This commit is contained in:
parent
81c431d006
commit
5df2570fdf
2 changed files with 5 additions and 2 deletions
|
@ -178,8 +178,8 @@ tr_freeMessageList( tr_msg_list * list )
|
|||
***
|
||||
**/
|
||||
|
||||
static struct tm *
|
||||
tr_localtime_r( time_t *_clock, struct tm *_result )
|
||||
struct tm *
|
||||
tr_localtime_r( const time_t *_clock, struct tm *_result )
|
||||
{
|
||||
#ifdef HAVE_LOCALTIME_R
|
||||
return localtime_r( _clock, _result );
|
||||
|
|
|
@ -466,6 +466,9 @@ void* tr_int2ptr( int );
|
|||
*/
|
||||
char* tr_strratio( char * buf, size_t buflen, double ratio, const char * infinity );
|
||||
|
||||
struct tm * tr_localtime_r( const time_t *_clock, struct tm *_result );
|
||||
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue