]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/boost/libs/nowide/src/filebuf.cpp
update ceph source to reef 18.1.2
[ceph.git] / ceph / src / boost / libs / nowide / src / filebuf.cpp
index a8a688839308eeb4ef42dedab274bea89f0fc574..50388db140b14ff819828745be60979b05bf4611 100644 (file)
@@ -12,7 +12,7 @@
 #define BOOST_NOWIDE_FTELL ::ftell
 #define BOOST_NOWIDE_FSEEK ::fseek
 #define BOOST_NOWIDE_OFF_T long
-#elif defined(_WIN32) && !defined(__CYGWIN__)
+#elif defined(_WIN32) && !defined(__CYGWIN__) && !defined(__MINGW32__)
 #define BOOST_NOWIDE_FTELL _ftelli64
 #define BOOST_NOWIDE_FSEEK _fseeki64
 #define BOOST_NOWIDE_OFF_T int64_t
@@ -20,7 +20,9 @@
 // IMPORTANT: Have these defines BEFORE any #includes
 //            and make sure changes by those macros don't leak into the public interface
 // Make LFS functions available
+#ifndef _LARGEFILE_SOURCE
 #define _LARGEFILE_SOURCE
+#endif
 // Make off_t 64 bits if the macro isn't set
 #ifndef _FILE_OFFSET_BITS
 #define _FILE_OFFSET_BITS 64