cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Curl.h need change ? [was ftp CURLE_FTP_PORT_FAILED after lots o f downloads]

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Fri, 6 Sep 2002 14:19:23 +0200 (MET DST)

On Fri, 6 Sep 2002, Cadime wrote:

> I was able to find MY error. In a very specific situation an exception was
> generated and the corresponding fclose was not called.

Ah, goodie.

> I am compiling with HP-UX aCC and I am getting an error when using
> curl7.9.8 headers. I need a kind of additional check as the one that
> occurred from v1.152 to 1.153 of curl.h. But I do not know what should be
> the compiler flag to check !!!!
>
> My compiler does not predefine __STDC__ neither _MSC_VER neither
> __cplusplus. It does not allow to define them either.
>
> Any help?

Checking http://predef.sourceforge.net/, it suggests your compiler sets
__HP_aCC. Could you try that?

It would make the full condition something like this:

#if defined(__STDC__) || defined(_MSC_VER) || defined(__cplusplus) || \
  defined(__HP_aCC)

-- 
 Daniel Stenberg -- curl related mails on curl related mailing lists please
-------------------------------------------------------
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone?  Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
Received on 2002-09-06