From: Yongwei Wu <wuy...@gm...> - 2010-01-15 09:11:21
|
2010/1/15 Jef Driesen <jef...@ho...>: > On 15/01/10 02:30, Tor Lillqvist wrote: >>> It *is* convoluted, >> >> So why bother then with any __timewhatever_t at all? Why not just in >> this hypothetical foo library have: >> >> void foo_do_something (int64_t when); >> >> in the API. No ugly ifdefs needed. >> >> And then *internally* in the library use explicit 64-bit time_t in C >> library calls. > > I think Yongwei was talking about mingw itself, not some application or > library using it. At least that's how I interpreted his post. In fact, it is both MinGW and libraries using it. Returning to Tor's question: maybe it is needed if you want the best compatibility. However, I think it is best accompanied with the switch from MSVCRT.dll to a newer one. Otherwise, you would need to write too much compatibility stuff. -- Wu Yongwei URL: http://wyw.dcweb.cn/ |