Edit

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

Branch :

  • Browse

    Commit

  • Author : Brent Cook
    Date : 2015-09-08 15:00:09
    Hash : 5f4e95e7
    Message : updates for MSVC 2015's degenerate headers Note that 'perror' moves from stdio.h to stdlib.h, and 'rename' moves from stdio.h to io.h. Also, standard C includes move from the compiler to the Windows SDK, which changes the base path for the include files.

  • 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
    #define gmtime_r(tp, tm) ((gmtime_s((tm), (tp)) == 0) ? (tm) : NULL)
    #else
    #include_next <time.h>
    #endif