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>2002-08-28 20:08:09 +0400
committerChristopher Faylor <me@cgf.cx>2002-08-28 20:08:09 +0400
commit78dd8bdd127522b7d503b2acc9271079a2462926 (patch)
tree712df00c90681fd5af02ff793e1f31c30b57306d /winsup/cygwin
parent9c50dc14a95df0345ae1595b4a04673f50b59d61 (diff)
* malloc.cc: Protect some definitions to avoid a compile time warning.
Diffstat (limited to 'winsup/cygwin')
-rw-r--r--winsup/cygwin/ChangeLog4
-rw-r--r--winsup/cygwin/malloc.cc4
2 files changed, 8 insertions, 0 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog
index b04e913d7..2b32b945b 100644
--- a/winsup/cygwin/ChangeLog
+++ b/winsup/cygwin/ChangeLog
@@ -1,3 +1,7 @@
+2002-08-28 Christopher Faylor <cgf@redhat.com>
+
+ * malloc.cc: Protect some definitions to avoid a compile time warning.
+
2002-08-27 Nicholas Wourms <nwourms@netscape.net>
* cygwin.din: Export getc_unlocked, getchar_unlocked,
diff --git a/winsup/cygwin/malloc.cc b/winsup/cygwin/malloc.cc
index 02832bb99..2e0a5cce0 100644
--- a/winsup/cygwin/malloc.cc
+++ b/winsup/cygwin/malloc.cc
@@ -2510,14 +2510,18 @@ static void malloc_init_state(av) mstate av;
#if __STD_C
static Void_t* sYSMALLOc(INTERNAL_SIZE_T, mstate);
+#ifndef MORECORE_CANNOT_TRIM
static int sYSTRIm(size_t, mstate);
+#endif
static void malloc_consolidate(mstate);
#ifdef NEED_INDEPENDENT
static Void_t** iALLOc(size_t, size_t*, int, Void_t**);
#endif
#else
static Void_t* sYSMALLOc();
+#ifndef MORECORE_CANNOT_TRIM
static int sYSTRIm();
+#endif
static void malloc_consolidate();
#ifdef NEED_INDEPENDENT
static Void_t** iALLOc();