tinycc-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Tinycc-devel] On Windows x64, difftime64 is sometime missing form msvcr


From: Christian Jullien
Subject: [Tinycc-devel] On Windows x64, difftime64 is sometime missing form msvcrt
Date: Sun, 20 Dec 2009 08:17:03 +0100

Well, this not really a tcc bug but a MS one.
When you compile with tcc 64bit on Windows, difftime compiles to difftime64
which is sometime missing form msvcrt.dll (it seems that msvcrt.dll from
WS2005 has this issue which looks to be fixed in WS2008).

For me,

#if     defined( __TINYC__ ) && defined( _WIN64 )
#define difftime(x, y) (x - y)
#else
// other cases
#endif

Works.

I don't known how you want to handle this issue.

Christian








reply via email to

[Prev in Thread] Current Thread [Next in Thread]