• Martin Storsjö's avatar
    time_internal: Prefix fallback versions of gmtime_r/localtime_r with ff_ · c4642788
    Martin Storsjö authored
    Use a macro to redirect calling code from the official name to the
    ff_ prefixed one.
    
    Detecting these functions in configure can be tricky (on mingw, they
    are conditionally available depending on posix feature defines).
    If configure didn't detect them, but they still are visible at
    compile time (due to an unrelated header defining the posix feature
    defines), providing the local fallback versions with a prefixed
    name is safer.
    Signed-off-by: 's avatarMartin Storsjö <martin@martin.st>
    c4642788
time_internal.h 1.42 KB