cURL / Mailing Lists / curl-library / Single Mail

curl-library

RE: Windows build failures!

From: Steve Holme <steve_holme_at_hotmail.com>
Date: Sun, 29 Dec 2013 14:59:27 +0000

On Sun, 29 Dec 2013, Steve Holme wrote:

> 2) The libcurl source output option (--libcurl) doesn't work properly
> under Windows when generating curl_easy_setopt() code that
> contains a CURL_OFF_T - Test 1402 for example generates:
>
> So should we consider adding support the Visual Studio format
> specifiers to curl_msnprintf () which ultimately calls dprintf_formatf()
> or should we use the "long long" format specifier in curlbuild.h?

After posting I realised that a) ENABLE_CURLX_PRINTF isn't available in
curlbuild.h and b) I got the logic round the wrong way in the #if anyway :-/

As such I have been working on a fix to our printf() functions as an
alternative.

I have attached my first stab at the fix for anyone that is interested but
basically it add supports for the non-standard I, I32 and I64 size
specifiers for compilers (runtime libraries) that support them. This means
that we can use the following in printf() type functions:

%Id
%Iu
%I32d
%I32u
%I64d
%I64u

I appreciate we don't use I or I32 at present but I don't see any harm in
supporting these as well as I64.

As always any feedback is welcome.

Kind Regards

Steve

Received on 2013-12-29