aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDan Fandrich <dan@coneharvesters.com>2006-08-16 18:48:27 +0000
committerDan Fandrich <dan@coneharvesters.com>2006-08-16 18:48:27 +0000
commit839441e236764996425fe768e9497b1f914cea3e (patch)
treef75970d7e57d44104b523545d496b0b80180d140 /src
parentba9ea943e2e11a6131832937551f1768c8f52d9b (diff)
Minor portability fixes to get things running on UNICOS 9.0 on a Cray Y-MP
Diffstat (limited to 'src')
-rw-r--r--src/main.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/main.c b/src/main.c
index dd6920d5c..f0d2fd4ee 100644
--- a/src/main.c
+++ b/src/main.c
@@ -1180,9 +1180,12 @@ static int str2offset(curl_off_t *val, char *str)
* definitions for LLONG_{MIN,MAX} or LONG_LONG_{MIN,MAX}.
*/
#ifndef LLONG_MAX
-#ifdef _MSC_VER
+#if defined(_MSC_VER)
#define LLONG_MAX (curl_off_t)0x7FFFFFFFFFFFFFFFi64
#define LLONG_MIN (curl_off_t)0x8000000000000000i64
+#elif defined(_CRAYC)
+#define LLONG_MAX (curl_off_t)0x7FFFFFFFFFFFFFFF
+#define LLONG_MIN (curl_off_t)0x8000000000000000
#else
#define LLONG_MAX (curl_off_t)0x7FFFFFFFFFFFFFFFLL
#define LLONG_MIN (curl_off_t)0x8000000000000000LL