]> granicus.if.org Git - curl/commitdiff
define ENABLE_64BIT if we have enabled 64bit large files
authorDaniel Stenberg <daniel@haxx.se>
Mon, 1 Mar 2004 16:23:35 +0000 (16:23 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Mon, 1 Mar 2004 16:23:35 +0000 (16:23 +0000)
define our internal CURL_FORMAT_OFF_T define, we don't use the global one!

lib/setup.h

index ec69ebfdf0c328ef12bde351417fe21d9adf845a..35ccb12ad5ba0c847b36515eee01821f17b385c5 100644 (file)
@@ -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