| # Gaudi Framework, version v22r4 |

Home |  | Generated: Fri Sep 2 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     localtime_s(result, sec);
    00018     return result;
    00019   }
    00020   inline struct tm * gmtime_r(const time_t *sec, struct tm *result) {
    00021     gmtime_s(result, 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