Skip to content

Commit a2fda45

Browse files
committed
Use int64_t instead of __int64
1 parent a62fd8f commit a2fda45

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Diff for: libsrc/posixio.c

+3-2
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
#include <stdlib.h>
1616
#include <errno.h>
1717
#include <string.h>
18+
#include <stddef.h>
1819

1920
#ifdef HAVE_FCNTL_H
2021
#include <fcntl.h>
@@ -120,7 +121,7 @@ static off_t nc_get_filelen(const int fd) {
120121
off_t flen;
121122

122123
#ifdef HAVE_FILE_LENGTH_I64
123-
__int64 file_len = 0;
124+
int64_t file_len = 0;
124125
if ((file_len = _filelengthi64(fd)) < 0) {
125126
return file_len;
126127
}
@@ -1829,7 +1830,7 @@ ncio_px_filesize(ncio *nciop, off_t *filesizep)
18291830
Use _filelengthi64 isntead. */
18301831
#ifdef HAVE_FILE_LENGTH_I64
18311832

1832-
__int64 file_len = 0;
1833+
int64_t file_len = 0;
18331834
if( (file_len = _filelengthi64(nciop->fd)) < 0) {
18341835
return errno;
18351836
}

0 commit comments

Comments
 (0)