1 #ifndef PBD_LOCALTIME_R
2 #define PBD_LOCALTIME_R
7 #define localtime_r( _clock, _result ) \
8 ( *(_result) = *localtime( (_clock) ), (_result) )
10 #elif defined COMPILER_MINGW
16 // As in 64 bit time_t is 64 bit integer, compiler breaks compilation
17 // everytime implicit cast from long int* to time_t* worked in
18 // the past (32 bit). To unblock such a cast we added the localtime below:
19 extern struct tm *localtime(const long int *_Time);
20 extern struct tm *localtime_r(const time_t *const timep, struct tm *p_tm);