diff options
author | Jeff Johnston <jjohnstn@redhat.com> | 2002-08-20 15:29:30 +0000 |
---|---|---|
committer | Jeff Johnston <jjohnstn@redhat.com> | 2002-08-20 15:29:30 +0000 |
commit | fe47ea33a95d191dd76e771af90ea2d8f28244ff (patch) | |
tree | bb590c3f5978da28209376ada0f418c1c24e7b13 /newlib/libc/stdlib | |
parent | 48a289565c098f7a1eb62da807741d4ae3fd6152 (diff) | |
download | cygnal-fe47ea33a95d191dd76e771af90ea2d8f28244ff.tar.gz cygnal-fe47ea33a95d191dd76e771af90ea2d8f28244ff.tar.bz2 cygnal-fe47ea33a95d191dd76e771af90ea2d8f28244ff.zip |
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.c | 6 |
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 */ |