Edit

kc3-lang/libressl/include/compat/time.h

Branch :

  • Browse

    Commit

  • Author : Brent Cook
    Date : 2015-10-18 09:28:10
    Hash : 0197a589
    Message : Windows compatibility fixes VS2013 has trouble with relative include paths for apps/openssl, so move certhash_win/apps_win.c back to apps/openssl. gmtime_r on mingw64 fails with negative time_t, override gmtime_s fails all of the time unit tests, override SHUT_RD/WR are defined in newer mingw64 headers, check before overriding

  • include/compat/time.h
  • /*
     * Public domain
     * sys/time.h compatibility shim
     */
    
    #ifdef _MSC_VER
    #if _MSC_VER >= 1900
    #include <../ucrt/time.h>
    #else
    #include <../include/time.h>
    #endif
    #else
    #include_next <time.h>
    #endif
    
    #ifdef _WIN32
    struct tm *__gmtime_r(const time_t * t, struct tm * tm);
    #define gmtime_r(tp, tm) __gmtime_r(tp, tm)
    #endif
    
    #ifndef HAVE_TIMEGM
    time_t timegm(struct tm *tm);
    #endif