mirror of
https://github.com/Unidata/netcdf-c.git
synced 2025-03-07 17:08:02 +08:00
Use int64_t instead of __int64
This commit is contained in:
parent
670078f981
commit
5ec50071d7
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user