* libc/stdlib/mallocr.c: Undefine windows preprocessor variables when compiling

under Cygwin.
This commit is contained in:
Christopher Faylor 2001-01-30 04:04:59 +00:00
parent f1f21b9ea2
commit 82ea92f3ea
2 changed files with 10 additions and 0 deletions

View File

@ -1,3 +1,8 @@
Mon Jan 29 23:03:06 2001 Christopher Faylor <cgf@cygnus.com>
* libc/stdlib/mallocr.c: Undefine windows preprocessor variables when
compiling under Cygwin.
2001-01-29 Jeff Johnston <jjohnstn@redhat.com>
* libc/include/math.h (signgam): Change to errno-like solution

View File

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