Gaudi Framework, version v22r0

Home   Generated: 9 Feb 2011

time_r.h

Go to the documentation of this file.
00001 #ifndef GAUDIKERNEL_TIME_R_H
00002 #define GAUDIKERNEL_TIME_R_H
00003 
00004 #include <ctime>
00005 
00006 /*
00007   This header file provides the functions localtime_r and time_r (available on Linux)
00008   to the Win32 platform.
00009 
00010   Marco Clemencic
00011 */
00012 
00013 #ifdef _WIN32
00014 
00015 extern "C" {
00016   inline struct tm *localtime_r ( const time_t *sec, struct tm *result) {
00017     *result = *localtime(sec);
00018     return result;
00019   }
00020   inline struct tm *gmtime_r ( const time_t *sec, struct tm *result) {
00021     *result = *gmtime(sec);
00022     return result;
00023   }
00024 }
00025 
00026 #endif
00027 
00028 #endif    // GAUDIKERNEL_TIME_R_H
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines

Generated at Wed Feb 9 16:24:54 2011 for Gaudi Framework, version v22r0 by Doxygen version 1.6.2 written by Dimitri van Heesch, © 1997-2004