Use int64_t instead of __int64

This commit is contained in:
Magnus Ulimoen 2022-07-16 13:54:55 +02:00
parent 670078f981
commit 5ec50071d7

View File

@ -15,6 +15,7 @@
#include <stdlib.h>
#include <errno.h>
#include <string.h>
#include <stdint.h>
#ifdef HAVE_FCNTL_H
#include <fcntl.h>
@ -120,7 +121,7 @@ static off_t nc_get_filelen(const int fd) {
off_t flen;
#ifdef HAVE_FILE_LENGTH_I64
__int64 file_len = 0;
int64_t file_len = 0;
if ((file_len = _filelengthi64(fd)) < 0) {
return file_len;
}
@ -1829,7 +1830,7 @@ ncio_px_filesize(ncio *nciop, off_t *filesizep)
Use _filelengthi64 isntead. */
#ifdef HAVE_FILE_LENGTH_I64
__int64 file_len = 0;
int64_t file_len = 0;
if( (file_len = _filelengthi64(nciop->fd)) < 0) {
return errno;
}