mirror of
https://git.savannah.gnu.org/git/make.git
synced 2025-01-30 19:24:07 +00:00
glob/glob.c [__GNU_LIBRARY__ && __DJGPP__]: Add a realloc declaration
that matches the one in the DJGPP libc.
This commit is contained in:
parent
91b016c414
commit
84e9bcd65e
2 changed files with 9 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
2007-12-22 Juan Manuel Guerrero <juan.guerrero@gmx.de> (tiny change)
|
||||||
|
|
||||||
|
* glob/glob.c [__GNU_LIBRARY__ && __DJGPP__]: Add a realloc
|
||||||
|
declaration that matches the one in the DJGPP libc.
|
||||||
|
|
||||||
2006-02-24 Eli Zaretskii <eliz@gnu.org>
|
2006-02-24 Eli Zaretskii <eliz@gnu.org>
|
||||||
|
|
||||||
* glob.c (my_malloc) [WINDOWS32]: Provide a full ISO C prototype,
|
* glob.c (my_malloc) [WINDOWS32]: Provide a full ISO C prototype,
|
||||||
|
|
|
@ -190,12 +190,15 @@ __inline
|
||||||
# ifdef WINDOWS32
|
# ifdef WINDOWS32
|
||||||
static void *
|
static void *
|
||||||
my_realloc (void *p, unsigned int n)
|
my_realloc (void *p, unsigned int n)
|
||||||
|
# elif defined(__DJGPP__)
|
||||||
|
static void *
|
||||||
|
my_realloc (void *p, size_t n)
|
||||||
# else
|
# else
|
||||||
static char *
|
static char *
|
||||||
my_realloc (p, n)
|
my_realloc (p, n)
|
||||||
char *p;
|
char *p;
|
||||||
unsigned int n;
|
unsigned int n;
|
||||||
# endif
|
# endif
|
||||||
{
|
{
|
||||||
/* These casts are the for sake of the broken Ultrix compiler,
|
/* These casts are the for sake of the broken Ultrix compiler,
|
||||||
which warns of illegal pointer combinations otherwise. */
|
which warns of illegal pointer combinations otherwise. */
|
||||||
|
|
Loading…
Reference in a new issue