Fossil

View Ticket
Login

View Ticket

2010-11-07
23:51 Fixed ticket [9d186979fc]: printf() does not understand %lld on windows plus 1 other change ... (artifact: 5013d36cbb user: drh)
23:51
Avoid the use of %lld to work around limitations of some windows compilers. Ticket [9d186979fc4fe8d9c] ... (check-in: c76bb6d270 user: drh tags: trunk)
22:03 Ticket [9d186979fc] printf() does not understand %lld on windows status still Open with 2 other changes ... (artifact: e1612f0825 user: anonymous)
21:12 Add attachment printf_format.patch to ticket [9d186979fc] ... (artifact: 2a42bb0f6a user: anonymous)
21:12 New ticket [9d186979fc] printf() does not understand %lld on windows. ... (artifact: e1e2412558 user: anonymous)

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


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"
#else
#define LL_FORMAT "lld"
#endif

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


Attachments: