Hi,

I have a residual Windows <==> gcc compatibility problem:

gcc uses "ll" as 64 bit formatting prefix for printf, where MSVC uses "I64".

This a problem in the profiling code.

Now I'm using this work around:

in squid.h:

#if defined(_SQUID_MSWIN_) && defined(_MSC_VER) /* Microsoft C Compiler ONLY */
#define INT64PRFX "I64"
#else
#define INT64PRFX "ll"
#endif /* _SQUID_MSWIN_ && _MSC_VER */

and where I need a 64 bit printf():

storeAppendPrintf(sentry, " (Cumulated time: %" INT64PRFX "u, %.2f sec)\n", show->delta, time_frame);

Any other hints about ?

Regards

Guido



-
========================================================
Guido Serassio
Acme Consulting S.r.l.
Via Gorizia, 69             10136 - Torino - ITALY
Tel. : +39.011.3249426      Fax. : +39.011.3293665
Email: [EMAIL PROTECTED]
WWW: http://www.acmeconsulting.it/



Reply via email to