Fossil SCM
printf() does not understand %lld on windows
Fixed
9d186979fc4fe8d…
· opened 15 years, 5 months ago
- Type
- Code_Defect
- Priority
- —
- Severity
- Important
- Resolution
- Fixed
- Subsystem
- —
- Created
- Nov. 7, 2010 9:12 p.m.
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.