~ubuntu-branches/ubuntu/hoary/curl/hoary

« back to all changes in this revision

Viewing changes to lib/strtoofft.h

  • Committer: Bazaar Package Importer
  • Author(s): LaMont Jones
  • Date: 2005-03-23 18:41:29 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20050323184129-le70d05a0hk5w62j
Tags: 7.12.3-2ubuntu3
Fix the version numbers internal to debian/rules.  Closes; #8088

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#ifndef _CURL_STRTOOFFT_H
2
2
#define _CURL_STRTOOFFT_H
3
3
/***************************************************************************
4
 
 *                                  _   _ ____  _     
5
 
 *  Project                     ___| | | |  _ \| |    
6
 
 *                             / __| | | | |_) | |    
7
 
 *                            | (__| |_| |  _ <| |___ 
 
4
 *                                  _   _ ____  _
 
5
 *  Project                     ___| | | |  _ \| |
 
6
 *                             / __| | | | |_) | |
 
7
 *                            | (__| |_| |  _ <| |___
8
8
 *                             \___|\___/|_| \_\_____|
9
9
 *
10
10
 * Copyright (C) 1998 - 2004, Daniel Stenberg, <daniel@haxx.se>, et al.
12
12
 * This software is licensed as described in the file COPYING, which
13
13
 * you should have received as part of this distribution. The terms
14
14
 * are also available at http://curl.haxx.se/docs/copyright.html.
15
 
 * 
 
15
 *
16
16
 * You may opt to use, copy, modify, merge, publish, distribute and/or sell
17
17
 * copies of the Software, and permit persons to whom the Software is
18
18
 * furnished to do so, under the terms of the COPYING file.
20
20
 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
21
21
 * KIND, either express or implied.
22
22
 *
23
 
 * $Id: strtoofft.h,v 1.10 2004/04/07 07:30:40 bagder Exp $
 
23
 * $Id: strtoofft.h,v 1.14 2004/12/17 18:33:09 giva Exp $
24
24
 ***************************************************************************/
25
25
 
26
26
/*
38
38
 * not, should try to emulate its functionality.  At any rate, we define
39
39
 * 'strtoofft' such that it can be used to work with curl_off_t's regardless.
40
40
 */
41
 
#if SIZEOF_CURL_OFF_T > 4
 
41
#if (SIZEOF_CURL_OFF_T > 4) && (SIZEOF_LONG < 8)
42
42
#if HAVE_STRTOLL
43
43
#define curlx_strtoofft strtoll
44
44
#else /* HAVE_STRTOLL */
53
53
#endif /* MSVC7 or later */
54
54
 
55
55
#endif /* HAVE_STRTOLL */
56
 
#else /* SIZEOF_CURL_OFF_T > 4 */
57
 
/* simply use strtol() to get 32bit numbers */
 
56
#else /* (SIZEOF_CURL_OFF_T > 4) && (SIZEOF_LONG < 8) */
 
57
/* simply use strtol() to get numbers, either 32 or 64 bit */
58
58
#define curlx_strtoofft strtol
59
59
#endif
60
60
 
 
61
#if defined(_MSC_VER) || defined(__WATCOMC__)
 
62
#define CURL_LLONG_MIN 0x8000000000000000i64
 
63
#define CURL_LLONG_MAX 0x7FFFFFFFFFFFFFFFi64
 
64
#elif defined(HAVE_LL)
 
65
#define CURL_LLONG_MIN 0x8000000000000000LL
 
66
#define CURL_LLONG_MAX 0x7FFFFFFFFFFFFFFFLL
 
67
#else
 
68
#define CURL_LLONG_MIN 0x8000000000000000L
 
69
#define CURL_LLONG_MAX 0x7FFFFFFFFFFFFFFFL
 
70
#endif
 
71
 
61
72
#endif
62
73