blob: ad5b89d1342261d9c8bce623722de0e02bda335c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
#ifndef PBD_LOCALTIME_R
#define PBD_LOCALTIME_R
#include <time.h>
#ifdef COMPILER_MSVC
#define localtime_r( _clock, _result ) \
( *(_result) = *localtime( (_clock) ), \
(_result) )
#else
extern struct tm *localtime_r(const time_t *const timep, struct tm *p_tm);
#endif
#endif
|