View Ticket

View Ticket

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
On windows some compilers do not understand the %lld format specifier.

The attached patch circumvents the problem with the help of functions from SQLite.


anonymous added on 2010-11-07 22:03:17:
I would strongly prefer to introduce a LL_FORMAT macro. Define it like

#ifdef _WIN32
#define LL_FORMAT "l64d"
#define LL_FORMAT "lld"

This would allow sane fallbacks for other ancient / broken platforms.