1
0
mirror of https://github.com/lammertb/libhttp.git synced 2025-09-03 01:21:16 +03: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:
lsm
2010-05-08 14:06:35 +02:00
parent 218cca4aca
commit d94c3f8b64
2 changed files with 11 additions and 9 deletions

View File

@@ -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>