cURL / Mailing Lists / curl-library / Single Mail


curl_off_t suffix

From: Dan Fandrich <>
Date: Wed, 13 Aug 2008 15:23:22 -0700

The configure for Open Watcom is giving some strange results. The end of
the curlbuild.h file looks like this:

/* The expected size of long , as to be computed by sizeof. */

/* Signed integral data type used for curl_off_t. */
#define CURL_OFF_T int64_t

/* Data type definition of curl_off_t. */
typedef CURL_OFF_T curl_off_t;

/* curl_off_t formatting string directive without "%" conversion specifier. */
#define CURL_FMT_OFF_T "lld"

/* unsigned curl_off_t formatting string without "%" conversion specifier. */
#define CURL_FMT_OFF_TU "llu"

/* curl_off_t formatting string directive with "%" conversion specifier. */
#define CURL_FORMAT_OFF_T "%lld"

/* The expected size of curl_off_t, as to be computed by sizeof. */

/* curl_off_t constant suffix. */
#define CURL_SUFFIX_CURL_OFF_T 9223372036854775807LL9223372036854775807LL

/* unsigned curl_off_t constant suffix. */
#define CURL_SUFFIX_CURL_OFF_TU U9223372036854775807LL9223372036854775807LL

Naturally, the last two defines aren't right. For reference, stdint.h
defines these:

# define __INT64_C(c) c ## LL
# define __UINT64_C(c) c ## ULL

>>> Dan

--              The web change of address service
          Let webmasters know that your web site has moved
Received on 2008-08-14