mirror of
https://github.com/cesanta/mongoose.git
synced 2026-10-28 12:30:58 +00:00
moved linux-specific compilation #defines into mongoose.c. This way we make sure flags are picked up if Makefile is not used.
This commit is contained in:
1 parent
218cca4aca
commit
d94c3f8b64
2 files changed
+11
-9
No files matched your search
+4
-1
@@ -25,7 +25,10 @@
|
||||
|
||||
#if defined(_WIN32)
|
||||
#define _CRT_SECURE_NO_WARNINGS /* Disable deprecation warning in VS2005 */
|
||||
#endif /* _WIN32 */
|
||||
#else
|
||||
#define _XOPEN_SOURCE 600 /* Needed for pthread_rwlock on linux */
|
||||
#define _LARGEFILE_SOURCE /* Enable 64-bit file offsets */
|
||||
#endif
|
||||
|
||||
#ifndef _WIN32_WCE /* Some ANSI #includes are not available on Windows CE */
|
||||
#include <sys/types.h>
|
||||
|
||||
Reference in new issue
Block a user