NO-OP: name-change (_list and _lock are also used in other places)
[ardour.git] / libs / pbd / pbd / localtime_r.h
1 #ifndef PBD_LOCALTIME_R
2 #define PBD_LOCALTIME_R
3 #include <time.h>
4
5 #ifdef COMPILER_MSVC
6
7 #define localtime_r( _clock, _result ) \
8         ( *(_result) = *localtime( (_clock) ), (_result) )
9
10 #elif defined COMPILER_MINGW
11
12 #  ifdef localtime_r
13 #  undef localtime_r
14 #  endif
15
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);
21
22 #endif
23
24 #endif