Ticket Hash: | 9d186979fc4fe8d9c4360af603067cde558a50f7 | |||
Title: | printf() does not understand %lld on windows | |||
Status: | Fixed | Type: | Code_Defect | |
Severity: | Important | Priority: | ||
Subsystem: | Resolution: | Fixed | ||
Last Modified: | 2010-11-07 23:51:47 | |||
Version Found In: | 6a11af1782 | |||
Description: | ||||
On windows some compilers do not understand the %lld format specifier. The attached patch circumvents the problem with the help of functions from SQLite. --tsbg <hr /><i>anonymous added on 2010-11-07 22:03:17:</i><br /> I would strongly prefer to introduce a LL_FORMAT macro. Define it like <verbatim> #ifdef _WIN32 #define LL_FORMAT "l64d" #else #define LL_FORMAT "lld" #endif </verbatim> This would allow sane fallbacks for other ancient / broken platforms. |
Attachments:
- printf_format.patch [download] added by anonymous on 2010-11-07 21:12:24. [details]