mirror of
https://github.com/cesanta/mongoose.git
synced 2026-11-26 20:38:25 +00:00
Define _XOPEN_SOURCE for MinGW build
This commit is contained in:
1 parent
a2e1da6e30
commit
bf44277764
1 file changed
+2
-2
+2
-2
@@ -48,8 +48,8 @@
|
|||||||
#define _INTEGRAL_MAX_BITS 64 // Enable _stati64() on Windows
|
#define _INTEGRAL_MAX_BITS 64 // Enable _stati64() on Windows
|
||||||
#define _CRT_SECURE_NO_WARNINGS // Disable deprecation warning in VS2005+
|
#define _CRT_SECURE_NO_WARNINGS // Disable deprecation warning in VS2005+
|
||||||
#undef WIN32_LEAN_AND_MEAN // Let windows.h always include winsock2.h
|
#undef WIN32_LEAN_AND_MEAN // Let windows.h always include winsock2.h
|
||||||
#ifdef __Linux__
|
#if defined(__Linux__) || defined(_WIN32)
|
||||||
#define _XOPEN_SOURCE 600 // For flockfile() on Linux
|
#define _XOPEN_SOURCE 600 // For flockfile() on Linux & MinGW
|
||||||
#endif
|
#endif
|
||||||
#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
|
||||||
|
|||||||
Reference in new issue
Block a user