Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2001-01-30 07:04:59 +0300
committerChristopher Faylor <me@cgf.cx>2001-01-30 07:04:59 +0300
commit82ea92f3ea672787464692d84aed030483a8f2db (patch)
tree2c2eeeb4e238f59098996a3c559400473e27f465 /newlib/libc/stdlib
parentf1f21b9ea2ff10bd20f2aed2d81de2585a14781f (diff)
* libc/stdlib/mallocr.c: Undefine windows preprocessor variables when compiling
under Cygwin.
Diffstat (limited to 'newlib/libc/stdlib')
-rw-r--r--newlib/libc/stdlib/mallocr.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/newlib/libc/stdlib/mallocr.c b/newlib/libc/stdlib/mallocr.c
index c2b2fb91f..d269dd390 100644
--- a/newlib/libc/stdlib/mallocr.c
+++ b/newlib/libc/stdlib/mallocr.c
@@ -304,6 +304,11 @@ extern "C" {
#define MALLOC_LOCK __malloc_lock(reent_ptr)
#define MALLOC_UNLOCK __malloc_unlock(reent_ptr)
+#ifdef __CYGWIN__
+# undef _WIN32
+# undef WIN32
+#endif
+
#ifndef _WIN32
#ifdef SMALL_MEMORY
#define malloc_getpagesize (128)