Ticket #5355: operations.cpp_64.patch

File operations.cpp_64.patch, 2.5 KB (added by Niklas Angare <li51ckf02@…>, 11 years ago)
  • libs/filesystem/v3/src/operations.cpp

     
    1010
    1111//--------------------------------------------------------------------------------------//
    1212
     13// This must be first
     14#if !(defined(__HP_aCC) && defined(_ILP32) && \
     15      !defined(_STATVFS_ACPP_PROBLEMS_FIXED))
     16#define _FILE_OFFSET_BITS 64 // at worst, these defines may have no effect,
     17#endif
     18#if !defined(__PGI)
     19#define __USE_FILE_OFFSET64 // but that is harmless on Windows and on POSIX
     20      // 64-bit systems or on 32-bit systems which don't have files larger
     21      // than can be represented by a traditional POSIX/UNIX off_t type.
     22      // OTOH, defining them should kick in 64-bit off_t's (and thus
     23      // st_size)on 32-bit systems that provide the Large File
     24      // Support (LFS)interface, such as Linux, Solaris, and IRIX.
     25      // The defines are given before any headers are included to
     26      // ensure that they are available to all included headers.
     27      // That is required at least on Solaris, and possibly on other
     28      // systems as well.
     29#else
     30#define _FILE_OFFSET_BITS 64
     31#endif
     32
    1333#include <boost/config.hpp>
    1434#if !defined( BOOST_NO_STD_WSTRING )
    1535// Boost.Filesystem V3 and later requires std::wstring support.
     
    3050# define _POSIX_PTHREAD_SEMANTICS  // Sun readdir_r()needs this
    3151#endif
    3252
    33 #if !defined(__QNXNTO__) && !(defined(__HP_aCC) && defined(_ILP32) && \
    34       !defined(_STATVFS_ACPP_PROBLEMS_FIXED))
    35 #define _FILE_OFFSET_BITS 64 // at worst, these defines may have no effect,
    36 #endif
    37 #if !defined(__PGI)
    38 #define __USE_FILE_OFFSET64 // but that is harmless on Windows and on POSIX
    39       // 64-bit systems or on 32-bit systems which don't have files larger
    40       // than can be represented by a traditional POSIX/UNIX off_t type.
    41       // OTOH, defining them should kick in 64-bit off_t's (and thus
    42       // st_size)on 32-bit systems that provide the Large File
    43       // Support (LFS)interface, such as Linux, Solaris, and IRIX.
    44       // The defines are given before any headers are included to
    45       // ensure that they are available to all included headers.
    46       // That is required at least on Solaris, and possibly on other
    47       // systems as well.
    48 #else
    49 #define _FILE_OFFSET_BITS 64
    50 #endif
    51 
    5253#include <boost/filesystem/v3/operations.hpp>
    5354#include <boost/scoped_array.hpp>
    5455#include <boost/detail/workaround.hpp>