cURL / Mailing Lists / curl-library / Single Mail

curl-library

64/32/16bit curl_off_t for z/OS OS/370 OS/380 OS/390 and TPF

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

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

#elif defined(__MVS__)
  #if defined(__IBMC__) || defined(__IBMCPP__)
    #if defined(_LONG_LONG)
      typedef long long curl_off_t;
      #define CURL_FORMAT_OFF_T "%lld"
      #define CURL_SIZEOF_CURL_OFF_T 8
    #elif defined(_LP64)
      typedef long curl_off_t;
      #define CURL_FORMAT_OFF_T "%ld"
      #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
  #endif

#elif defined(__370__)
  #if defined(__IBMC__) || defined(__IBMCPP__)
    #if defined(_LONG_LONG)
      typedef long long curl_off_t;
      #define CURL_FORMAT_OFF_T "%lld"
      #define CURL_SIZEOF_CURL_OFF_T 8
    #elif defined(_LP64)
      typedef long curl_off_t;
      #define CURL_FORMAT_OFF_T "%ld"
      #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
  #endif

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