Merge pull request #410 from zinosat/avoid_largefile_redefinition

Avoid unconditional definition of _LARGEFILE_SOURCE
This commit is contained in:
Sergey Lyubka committed 2014-08-07 22:13:09 +01:00
commit ced7a2e0b5
1 file changed
+2
+2
View File
@@ -49,7 +49,9 @@
#define _XOPEN_SOURCE 600 // For flockfile() on Linux
#define __STDC_FORMAT_MACROS // <inttypes.h> wants this for C++
#define __STDC_LIMIT_MACROS // C++ wants that for INT64_MAX
#ifndef _LARGEFILE_SOURCE
#define _LARGEFILE_SOURCE // Enable fseeko() and ftello() functions
#endif
#define _FILE_OFFSET_BITS 64 // Enable 64-bit file offsets
#ifdef _MSC_VER