mirror of
https://github.com/cesanta/mongoose.git
synced 2026-10-24 11:54:49 +00:00
#define _XOPEN_SOURCE 600 only for linux
This commit is contained in:
1 parent
518b3aa726
commit
0bb67e06c1
1 file changed
+4
-2
+4
-2
@@ -20,8 +20,10 @@
|
||||
|
||||
#if defined(_WIN32)
|
||||
#define _CRT_SECURE_NO_WARNINGS // Disable deprecation warning in VS2005
|
||||
#else
|
||||
#define _XOPEN_SOURCE // For flockfile() on Linux
|
||||
#else
|
||||
#ifdef __linux__
|
||||
#define _XOPEN_SOURCE 600 // For flockfile() on Linux
|
||||
#endif
|
||||
#define _LARGEFILE_SOURCE // Enable 64-bit file offsets
|
||||
#define __STDC_FORMAT_MACROS // <inttypes.h> wants this for C++
|
||||
#define __STDC_LIMIT_MACROS // C++ wants that for INT64_MAX
|
||||
|
||||
Reference in new issue
Block a user