aboutsummaryrefslogtreecommitdiff
path: root/lib/setup.h
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2004-03-01 16:23:35 +0000
committerDaniel Stenberg <daniel@haxx.se>2004-03-01 16:23:35 +0000
commit8cb2a6869454fb6ffa9334eaad83066181f7115a (patch)
treef2109f0a3f52172daaa9ed8b429642b2e8a8d00d /lib/setup.h
parent485122035c2139dc6da23e77bb2ac021d8e998ee (diff)
define ENABLE_64BIT if we have enabled 64bit large files
define our internal CURL_FORMAT_OFF_T define, we don't use the global one!
Diffstat (limited to 'lib/setup.h')
-rw-r--r--lib/setup.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/lib/setup.h b/lib/setup.h
index ec69ebfdf..35ccb12ad 100644
--- a/lib/setup.h
+++ b/lib/setup.h
@@ -70,6 +70,25 @@ typedef unsigned char bool;
#define typedef_bool
#endif
+#ifdef HAVE_LONGLONG
+#define LONG_LONG long long
+#define ENABLE_64BIT
+#else
+#ifdef _MSC_VER
+#define LONG_LONG __int64
+#define ENABLE_64BIT
+#endif
+#endif /* HAVE_LONGLONG */
+
+/* We set up our internal prefered CURL_FORMAT_OFF_T here */
+#undef CURL_FORMAT_OFF_T
+#if SIZEOF_CURL_OFF_T > 4
+#define CURL_FORMAT_OFF_T "%lld"
+#else
+#define CURL_FORMAT_OFF_T "%ld"
+#endif
+
+
#ifdef NEED_REENTRANT
/* Solaris machines needs _REENTRANT set for a few function prototypes and
things to appear in the #include files. We need to #define it before all