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:
authorJeff Johnston <jjohnstn@redhat.com>2002-08-20 19:29:30 +0400
committerJeff Johnston <jjohnstn@redhat.com>2002-08-20 19:29:30 +0400
commitfe47ea33a95d191dd76e771af90ea2d8f28244ff (patch)
treebb590c3f5978da28209376ada0f418c1c24e7b13 /newlib/libc/stdlib
parent48a289565c098f7a1eb62da807741d4ae3fd6152 (diff)
2002-08-20 Casper S. Hornstrup <chorns@users.sourceforge.net>
* libc/stdlib/mallocr.c: #include windows.h on Win32. (AlignPage): Continue macro on next line.
Diffstat (limited to 'newlib/libc/stdlib')
-rw-r--r--newlib/libc/stdlib/mallocr.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/newlib/libc/stdlib/mallocr.c b/newlib/libc/stdlib/mallocr.c
index 89838f656..b4fa555a4 100644
--- a/newlib/libc/stdlib/mallocr.c
+++ b/newlib/libc/stdlib/mallocr.c
@@ -273,6 +273,10 @@ extern "C" {
#include <stdio.h> /* needed for malloc_stats */
#include <limits.h> /* needed for overflow checks */
+#ifdef WIN32
+#define WIN32_LEAN_AND_MEAN
+#include <windows.h>
+#endif
/*
Compile-time options
@@ -1077,7 +1081,7 @@ struct mallinfo mALLINFo();
#ifdef WIN32
-#define AlignPage(add) (((add) + (malloc_getpagesize-1)) &
+#define AlignPage(add) (((add) + (malloc_getpagesize-1)) & \
~(malloc_getpagesize-1))
/* resrve 64MB to insure large contiguous space */