![]() |
|
|||
File indexing completed on 2025-02-21 10:00:36
0001 /***********************************************************************************\ 0002 * (c) Copyright 1998-2019 CERN for the benefit of the LHCb and ATLAS collaborations * 0003 * * 0004 * This software is distributed under the terms of the Apache version 2 licence, * 0005 * copied verbatim in the file "LICENSE". * 0006 * * 0007 * In applying this licence, CERN does not waive the privileges and immunities * 0008 * granted to it by virtue of its status as an Intergovernmental Organization * 0009 * or submit itself to any jurisdiction. * 0010 \***********************************************************************************/ 0011 #ifndef GAUDIKERNEL_TIME_R_H 0012 #define GAUDIKERNEL_TIME_R_H 0013 0014 #include <ctime> 0015 0016 /* 0017 This header file provides the functions localtime_r and time_r (available on Linux) 0018 to the Win32 platform. 0019 0020 Marco Clemencic 0021 */ 0022 0023 #ifdef _WIN32 0024 0025 extern "C" { 0026 inline struct tm* localtime_r( const time_t* sec, struct tm* result ) { 0027 localtime_s( result, sec ); 0028 return result; 0029 } 0030 inline struct tm* gmtime_r( const time_t* sec, struct tm* result ) { 0031 gmtime_s( result, sec ); 0032 return result; 0033 } 0034 } 0035 0036 #endif 0037 0038 #endif // GAUDIKERNEL_TIME_R_H
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |
![]() ![]() |