mirror of
https://github.com/cesanta/mongoose.git
synced 2025-08-06 13:37:34 +08:00
Merge pull request #159 from aerotech/master
_CRT_SECURE_NO_WARNINGS should not generate a warning if already defined
This commit is contained in:
commit
ce26234ace
@ -19,7 +19,9 @@
|
||||
// THE SOFTWARE.
|
||||
|
||||
#if defined(_WIN32)
|
||||
#if !defined(_CRT_SECURE_NO_WARNINGS)
|
||||
#define _CRT_SECURE_NO_WARNINGS // Disable deprecation warning in VS2005
|
||||
#endif
|
||||
#else
|
||||
#ifdef __linux__
|
||||
#define _XOPEN_SOURCE 600 // For flockfile() on Linux
|
||||
|
Loading…
Reference in New Issue
Block a user