diff options
author | Christopher Faylor <me@cgf.cx> | 2000-10-30 01:08:58 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2000-10-30 01:08:58 +0000 |
commit | 86fff69f622c1e9e07dbc9b9d81bd35b9ddb1759 (patch) | |
tree | 281fa80b4c6c3b4a49a8d868969f23394f0606a5 /newlib/libc/include/malloc.h | |
parent | 75a57bf04a04e7cacbfc1279aa6c35f3f16775d1 (diff) | |
download | cygnal-86fff69f622c1e9e07dbc9b9d81bd35b9ddb1759.tar.gz cygnal-86fff69f622c1e9e07dbc9b9d81bd35b9ddb1759.tar.bz2 cygnal-86fff69f622c1e9e07dbc9b9d81bd35b9ddb1759.zip |
* libc/include/stdlib.h: Avoid declaring cfree under Cygwin.
* libc/include/malloc.h: Ditto. Also remove obsolete declaration.
Diffstat (limited to 'newlib/libc/include/malloc.h')
-rw-r--r-- | newlib/libc/include/malloc.h | 18 |
1 files changed, 4 insertions, 14 deletions
diff --git a/newlib/libc/include/malloc.h b/newlib/libc/include/malloc.h index fa4527cd5..90f877f6f 100644 --- a/newlib/libc/include/malloc.h +++ b/newlib/libc/include/malloc.h @@ -70,25 +70,15 @@ extern _PTR _pvalloc_r _PARAMS ((struct _reent *, size_t)); extern int malloc_trim _PARAMS ((size_t)); extern int _malloc_trim_r _PARAMS ((struct _reent *, size_t)); -/* Some systems provide this, so do too for compatibility. */ - -extern void cfree _PARAMS ((_PTR)); - /* A compatibility routine for an earlier version of the allocator. */ extern _VOID mstats _PARAMS ((char *)); extern _VOID _mstats_r _PARAMS ((struct _reent *, char *)); -#ifdef __CYGWIN__ - -/* Cygwin32 needs to be able to copy all the malloc information from - the parent to the child. However, cygwin32 does not normally copy - any data in the DLL data section. This routine handles copying - that information. */ - -extern int __malloc_copy _PARAMS ((int (*) (void *, void *, void *, int), - void *, int)); -#endif /* __CYGWIN */ +#ifndef __CYGWIN__ +/* Some systems provide this, so do too for compatibility. */ +extern void cfree _PARAMS ((_PTR)); +#endif /* __CYGWIN__ */ #ifdef __cplusplus } |