The Gaudi Framework
v30r3 (a5ef0a68)
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
time_r.h
Go to the documentation of this file.
1
#ifndef GAUDIKERNEL_TIME_R_H
2
#define GAUDIKERNEL_TIME_R_H
3
4
#include <ctime>
5
6
/*
7
This header file provides the functions localtime_r and time_r (available on Linux)
8
to the Win32 platform.
9
10
Marco Clemencic
11
*/
12
13
#ifdef _WIN32
14
15
extern
"C"
{
16
inline
struct
tm* localtime_r(
const
time_t* sec,
struct
tm* result )
17
{
18
localtime_s( result, sec );
19
return
result;
20
}
21
inline
struct
tm* gmtime_r(
const
time_t* sec,
struct
tm* result )
22
{
23
gmtime_s( result, sec );
24
return
result;
25
}
26
}
27
28
#endif
29
30
#endif // GAUDIKERNEL_TIME_R_H
GaudiKernel
GaudiKernel
time_r.h
Generated on Wed Aug 1 2018 23:21:07 for The Gaudi Framework by
1.8.11