cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: 64/32/16bit curl_off_t for DJGPP and WATCOMC

From: Yang Tse <yangsita_at_gmail.com>
Date: Thu, 5 Jun 2008 18:25:59 +0200

My current local copy definitions block for these compiler/system looks like:

#if defined(__DJGPP__)
  typedef long curl_off_t;
  #define CURL_FORMAT_OFF_T "%ld"
  #define CURL_SIZEOF_CURL_OFF_T 4

#elif defined(__WATCOMC__)
  #if defined(__386__)
    typedef signed __int64 curl_off_t;
    #define CURL_FORMAT_OFF_T "%I64d"
    #define CURL_SIZEOF_CURL_OFF_T 8
  #else
    typedef long curl_off_t;
    #define CURL_FORMAT_OFF_T "%ld"
    #define CURL_SIZEOF_CURL_OFF_T 4
  #endif

-- 
-=[Yang]=-
Received on 2008-06-05