ardour
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
libs
pbd
pbd
localtime_r.h
Go to the documentation of this file.
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
localtime_r
struct tm * localtime_r(const time_t *const timep, struct tm *p_tm)
Definition:
localtime_r.cc:17
Generated on Sun May 24 2015 12:15:08 for ardour by
1.8.8