Skip to content

Commit

Permalink
Trying to activate large file IO under Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
BrunoLevy committed Feb 9, 2025
1 parent 502dd2e commit f68e16c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions src/lib/geogram/basic/geofile.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,10 @@ namespace {

#ifdef Z_LARGE64

#ifdef GEO_OS_WINDOWS
typedef GEO::Numeric::int64 ssize_t;
#endif

/**
* \brief Wrapper around gzread() to read more than 4Gb
*/
Expand Down Expand Up @@ -157,8 +161,6 @@ namespace {

#else

#warning "64 bit IO not defined in zlib"

#ifdef GEO_OS_WINDOWS
typedef GEO::Numeric::int64 ssize_t;
#endif
Expand Down
2 changes: 1 addition & 1 deletion src/lib/geogram/third_party/zlib/zconf.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
* set these defines by default
*/

#if defined(__APPLE__) || defined(_WIN32) || defined(_WIN64)
#if defined(_WIN32) || defined(_WIN64)
#define _LARGEFILE64_SOURCE 1
#define _LFS64_LARGEFILE 1
#define _FILE_OFFSET_BITS 64
Expand Down

0 comments on commit f68e16c

Please sign in to comment.