Commit ced7a2e0 authored by Sergey Lyubka's avatar Sergey Lyubka

Merge pull request #410 from zinosat/avoid_largefile_redefinition

Avoid unconditional definition of _LARGEFILE_SOURCE
parents 9fe53f30 5ed67084
...@@ -49,7 +49,9 @@ ...@@ -49,7 +49,9 @@
#define _XOPEN_SOURCE 600 // For flockfile() on Linux #define _XOPEN_SOURCE 600 // For flockfile() on Linux
#define __STDC_FORMAT_MACROS // <inttypes.h> wants this for C++ #define __STDC_FORMAT_MACROS // <inttypes.h> wants this for C++
#define __STDC_LIMIT_MACROS // C++ wants that for INT64_MAX #define __STDC_LIMIT_MACROS // C++ wants that for INT64_MAX
#ifndef _LARGEFILE_SOURCE
#define _LARGEFILE_SOURCE // Enable fseeko() and ftello() functions #define _LARGEFILE_SOURCE // Enable fseeko() and ftello() functions
#endif
#define _FILE_OFFSET_BITS 64 // Enable 64-bit file offsets #define _FILE_OFFSET_BITS 64 // Enable 64-bit file offsets
#ifdef _MSC_VER #ifdef _MSC_VER
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment