mirror of
https://github.com/cesanta/mongoose.git
synced 2026-10-20 11:19:56 +00:00
Merge pull request #410 from zinosat/avoid_largefile_redefinition
Avoid unconditional definition of _LARGEFILE_SOURCE
This commit is contained in:
commit
ced7a2e0b5
1 file changed
+2
@@ -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
|
||||
|
||||
Reference in new issue
Block a user