mirror of
https://github.com/curl/curl.git
synced 2026-08-25 20:13:35 +03:00
use curl_off_t instead of off_t!
This commit is contained in:
parent
6cd0a90b52
commit
b791e158f0
13 changed files with 67 additions and 81 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue