cURL
Haxx ad
libcurl

curl's project page on SourceForge.net

Sponsors:
Haxx

cURL > Mailing List > Monthly Index > Single Mail

curl-library Mailing List Archives

RE: 64/32/16bit curl_off_t for _WIN32_WCE and ILEC400

From: Patrick Monnerat <Patrick.Monnerat_at_datasphere.ch>
Date: Thu, 5 Jun 2008 22:06:20 +0200

Yang Tse wrote:

> #elif defined(__OS400__)
> #if defined(__ILEC400__)
> typedef long long curl_off_t;
> #define CURL_FORMAT_OFF_T "%lld"
> #define CURL_SIZEOF_CURL_OFF_T 8
> #endif

This is OK for me.
Note that, to my knowledge, OS400 only supports __ILEC400__ C compiler,
and this compiler always defines __OS400__... So you might reduce the
test to a single one for simplification.

Generally, I use __OS400__ to address specific OS400 (non-C) features,
and __ILEC400__ for C syntax/C library idioms... But there is no
absolute rule :-/

Note also that I force use of 64-bit file offset support by saying:

#define _LARGE_FILES

in lib/config-os400.h

Thanks for your work
Patrick
Received on 2008-06-05

These mail archives are generated by hypermail.

donate! Page updated November 12, 2010.
web site info

File upload with ASP.NET