cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: 64/32/16bit curl_off_t for POCC and LCC

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

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

#elif defined(__POCC__)
  #if (__POCC__ < 280)
    typedef long curl_off_t;
    #define CURL_FORMAT_OFF_T "%ld"
    #define CURL_SIZEOF_CURL_OFF_T 4
  #elif defined(_MSC_VER)
    typedef signed __int64 curl_off_t;
    #define CURL_FORMAT_OFF_T "%I64d"
    #define CURL_SIZEOF_CURL_OFF_T 8
  #else
    typedef long long curl_off_t;
    #define CURL_FORMAT_OFF_T "%lld"
    #define CURL_SIZEOF_CURL_OFF_T 8
  #endif

#elif defined(__LCC__)
  typedef long curl_off_t;
  #define CURL_FORMAT_OFF_T "%ld"
  #define CURL_SIZEOF_CURL_OFF_T 4

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