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 committed 2010-05-08 14:06:35 +02:00
1 parent 218cca4aca
commit d94c3f8b64
2 files changed
+11 -9

No files matched your search

+4 -1
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>