diff options
author | Tobias Burnus <tobias@codesourcery.com> | 2023-12-06 08:57:29 +0100 |
---|---|---|
committer | Tobias Burnus <tobias@codesourcery.com> | 2023-12-06 08:57:29 +0100 |
commit | 6e84dafcc72d1cd6d028b42f1801e092a91d3214 (patch) | |
tree | 32e603bd892f8d719e61c8797e6bfbcf806010bd /gcc | |
parent | 52f8092f54cf338c19d44e06b35612d15c96faf4 (diff) | |
download | gcc-6e84dafcc72d1cd6d028b42f1801e092a91d3214.zip gcc-6e84dafcc72d1cd6d028b42f1801e092a91d3214.tar.gz gcc-6e84dafcc72d1cd6d028b42f1801e092a91d3214.tar.bz2 |
tsystem.h: Declare calloc/realloc #ifdef inhibit_libc
Declare calloc and realloc #ifndef and inhibit_libc is
defined. Those are used by libgcc/emutls.c.
gcc/ChangeLog:
* tsystem.h (calloc, realloc): Declare when inhibit_libc.
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/tsystem.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/gcc/tsystem.h b/gcc/tsystem.h index 081c733..c49ff57 100644 --- a/gcc/tsystem.h +++ b/gcc/tsystem.h @@ -50,6 +50,14 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see extern void *malloc (size_t); #endif +#ifndef calloc +extern void *calloc(size_t, size_t); +#endif + +#ifndef realloc +extern void *realloc(void *, size_t); +#endif + #ifndef free extern void free (void *); #endif |