aboutsummaryrefslogtreecommitdiff
path: root/lib/mprintf.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2004-01-22 12:45:50 +0000
committerDaniel Stenberg <daniel@haxx.se>2004-01-22 12:45:50 +0000
commitb791e158f0e04a518dea19fdaf0bfbf71b343c64 (patch)
tree4284e63220eb5883c24351dc2f52282645b3b7cf /lib/mprintf.c
parent6cd0a90b523c594c75a5cb517f8081390e9e88df (diff)
use curl_off_t instead of off_t!
Diffstat (limited to 'lib/mprintf.c')
-rw-r--r--lib/mprintf.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/mprintf.c b/lib/mprintf.c
index 2b1356af7..a323bf554 100644
--- a/lib/mprintf.c
+++ b/lib/mprintf.c
@@ -38,6 +38,8 @@
#include <ctype.h>
#include <string.h>
+#include <curl/curl.h> /* for the curl_off_t type */
+
#ifndef SIZEOF_LONG_DOUBLE
#define SIZEOF_LONG_DOUBLE 0
#endif
@@ -377,9 +379,10 @@ static int dprintf_Pass1(char *format, va_stack_t *vto, char **endpos, va_list a
flags |= FLAGS_LONG;
break;
case 'O':
- if (sizeof(off_t) > sizeof(unsigned long int)) {
+ if (sizeof(curl_off_t) > sizeof(unsigned long int)) {
flags |= FLAGS_LONGLONG;
- } else if (sizeof(off_t) > sizeof(unsigned int)) {
+ }
+ else if (sizeof(curl_off_t) > sizeof(unsigned int)) {
flags |= FLAGS_LONG;
}
break;