Skip to content

Commit

Permalink
Attempt to fix large file support on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
evanmiller committed Dec 22, 2020
1 parent e1827e1 commit dc76fb1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/readstat.h
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ typedef int (*readstat_progress_handler)(double progress, void *ctx);
#if defined(_MSC_VER)
#include <BaseTsd.h>
typedef SSIZE_T ssize_t;
typedef _off_t readstat_off_t;
typedef __int64 readstat_off_t;
#elif defined _WIN32 || defined __CYGWIN__
typedef _off64_t readstat_off_t;
#elif defined _AIX
Expand Down
6 changes: 3 additions & 3 deletions src/readstat_io_unistd.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
#endif
#if defined _WIN32
# include <windows.h>
# include <io.h>
#endif

#include "readstat.h"
Expand All @@ -20,10 +21,9 @@
#define UNISTD_OPEN_OPTIONS O_RDONLY
#endif

#if defined _MSC_VER && defined WIN64
#if defined _WIN32
#define lseek _lseeki64
#elif defined _MSC_VER
#elif defined _WIN32 || defined _AIX
#elif defined _AIX
#define lseek lseek64
#endif

Expand Down

0 comments on commit dc76fb1

Please sign in to comment.