diff options
author | John Emmas <johne53@tiscali.co.uk> | 2013-07-16 18:00:49 +0100 |
---|---|---|
committer | John Emmas <johne53@tiscali.co.uk> | 2013-07-16 18:00:49 +0100 |
commit | 7b480eaa27d73e2e5c21c6ac785a1aa2fb3aa51a (patch) | |
tree | 997d0988cda21ea79ee9675f31b6b79e99335d46 /libs/pbd/pbd/localtime_r.h | |
parent | e4ab2ffbfbe12cea63e1046b37184ddf32d9ba47 (diff) |
Windows (compiler specific) includes for libpbd
Diffstat (limited to 'libs/pbd/pbd/localtime_r.h')
-rw-r--r-- | libs/pbd/pbd/localtime_r.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/libs/pbd/pbd/localtime_r.h b/libs/pbd/pbd/localtime_r.h index 2e7c7aa149..ad5b89d134 100644 --- a/libs/pbd/pbd/localtime_r.h +++ b/libs/pbd/pbd/localtime_r.h @@ -2,6 +2,12 @@ #define PBD_LOCALTIME_R #include <time.h> -extern struct tm *localtime_r(const time_t *const timep, struct tm *p_tm); +#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 |