mirror of
https://git.savannah.gnu.org/git/make.git
synced 2024-12-27 06:27:51 +00:00
* glob.c (my_realloc) [__DJGPP__]: Don't define, and don't
redefine realloc to call it, since the DJGPP's realloc handles NULL pointers correctly.
This commit is contained in:
parent
bf1794767e
commit
f9c15cac35
2 changed files with 9 additions and 6 deletions
|
@ -1,6 +1,12 @@
|
||||||
|
2008-09-28 Juan Manuel Guerrero <juan.guerrero@gmx.de>
|
||||||
|
|
||||||
|
* glob.c (my_realloc) [__DJGPP__]: Don't define, and don't
|
||||||
|
redefine realloc to call it, since the DJGPP's realloc handles
|
||||||
|
NULL pointers correctly.
|
||||||
|
|
||||||
2007-12-22 Juan Manuel Guerrero <juan.guerrero@gmx.de> (tiny change)
|
2007-12-22 Juan Manuel Guerrero <juan.guerrero@gmx.de> (tiny change)
|
||||||
|
|
||||||
* glob/glob.c [__GNU_LIBRARY__ && __DJGPP__]: Add a realloc
|
* glob.c [__GNU_LIBRARY__ && __DJGPP__]: Add a realloc
|
||||||
declaration that matches the one in the DJGPP libc.
|
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>
|
||||||
|
|
|
@ -182,7 +182,7 @@ extern void bcopy ();
|
||||||
# define mempcpy(Dest, Src, Len) __mempcpy (Dest, Src, Len)
|
# define mempcpy(Dest, Src, Len) __mempcpy (Dest, Src, Len)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef __GNU_LIBRARY__
|
#if !defined __GNU_LIBRARY__ && !defined __DJGPP__
|
||||||
# ifdef __GNUC__
|
# ifdef __GNUC__
|
||||||
__inline
|
__inline
|
||||||
# endif
|
# endif
|
||||||
|
@ -190,9 +190,6 @@ __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)
|
||||||
|
@ -208,7 +205,7 @@ my_realloc (p, n)
|
||||||
}
|
}
|
||||||
# define realloc my_realloc
|
# define realloc my_realloc
|
||||||
# endif /* __SASC */
|
# endif /* __SASC */
|
||||||
#endif /* __GNU_LIBRARY__ */
|
#endif /* __GNU_LIBRARY__ || __DJGPP__ */
|
||||||
|
|
||||||
|
|
||||||
#if !defined __alloca && !defined __GNU_LIBRARY__
|
#if !defined __alloca && !defined __GNU_LIBRARY__
|
||||||
|
|
Loading…
Reference in a new issue