The Gaudi Framework
master (37c0b60a)
time_r.h
Go to the documentation of this file.
1
/***********************************************************************************\
2
* (c) Copyright 1998-2019 CERN for the benefit of the LHCb and ATLAS collaborations *
3
* *
4
* This software is distributed under the terms of the Apache version 2 licence, *
5
* copied verbatim in the file "LICENSE". *
6
* *
7
* In applying this licence, CERN does not waive the privileges and immunities *
8
* granted to it by virtue of its status as an Intergovernmental Organization *
9
* or submit itself to any jurisdiction. *
10
\***********************************************************************************/
11
#ifndef GAUDIKERNEL_TIME_R_H
12
#define GAUDIKERNEL_TIME_R_H
13
14
#include <ctime>
15
16
/*
17
This header file provides the functions localtime_r and time_r (available on Linux)
18
to the Win32 platform.
19
20
Marco Clemencic
21
*/
22
23
#ifdef _WIN32
24
25
extern
"C"
{
26
inline
struct
tm* localtime_r(
const
time_t* sec,
struct
tm* result ) {
27
localtime_s( result, sec );
28
return
result;
29
}
30
inline
struct
tm* gmtime_r(
const
time_t* sec,
struct
tm* result ) {
31
gmtime_s( result, sec );
32
return
result;
33
}
34
}
35
36
#endif
37
38
#endif // GAUDIKERNEL_TIME_R_H
GaudiKernel
include
GaudiKernel
time_r.h
Generated on Thu Dec 19 2024 15:35:02 for The Gaudi Framework by
1.8.18