FictionTools/z88dk/ext/UNIXem/src/time.c
/** This function is from the STLSoft libraries */
This function is from the STLSoft libraries
This function is from the STLSoft libraries
extern long unixem_internal_FILETIMEToUNIXTime(
    FILETIME const* ft
,   long*           microseconds
)
{
#if defined(__COMO__)
    long long   i;
#else 
    LONGLONG    i;
#endif 
    i = ft->dwHighDateTime;
    i <<= 32;
    i |= ft->dwLowDateTime;
#if (   (   defined(__BORLANDC__) && \
            __BORLANDC__ >= 0x0582) || \
        defined(__DMC__) || \
        defined(__COMO__) || \
        defined(__GNUC__) || \
        defined(__MWERKS__))
    i -= 116444736000000000LL;
#else
    i -= 116444736000000000L;
#endif 
    if(NULL != microseconds)
    {
        *microseconds = (long)((i % 10000000) / 10);
    }
    i /= 10000000;
    return (long)i;
}
extern long unixem_internal_FILETIMEToUNIXTime ( FILETIME const * ft , long * microseconds ) { #if defined ( __COMO__ ) long long i ; #else LONGLONG i ; #endif i = ft -> dwHighDateTime ; i <<= 32 ; i |= ft -> dwLowDateTime ; #if ( ( defined ( __BORLANDC__ ) && __BORLANDC__ >= 0x0582 ) || defined ( __DMC__ ) || defined ( __COMO__ ) || defined ( __GNUC__ ) || defined ( __MWERKS__ ) ) i -= 116444736000000000LL ; #else i -= 116444736000000000L ; #endif if ( NULL != microseconds ) { * microseconds = ( long ) ( ( i % 10000000 ) / 10 ) ; } i /= 10000000 ; return ( long ) i ; }
This function is from the STLSoft libraries
This function is from the STLSoft libraries
/* ? compiler */ /* compiler */ /* compiler */