cURL / Mailing Lists / curl-library / Single Mail


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

From: Patrick Monnerat <>
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"
> #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
Received on 2008-06-05