Merge branch 'master' into windows
[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         #define localtime_r( _clock, _result ) \
7                 ( *(_result) = *localtime( (_clock) ), \
8                 (_result) )
9 #else
10         extern struct tm *localtime_r(const time_t *const timep, struct tm *p_tm);
11 #endif
12
13 #endif