| The Gaudi Framework v29r1 (5cd95fa2)

- 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