mirror of git://sourceware.org/git/glibc.git
* malloc/malloc.h [! __GNUC__] (__const): Define if undefined.
This commit is contained in:
parent
fe2dcbcca1
commit
862ef98272
|
@ -1,3 +1,7 @@
|
||||||
|
2003-05-28 Roland McGrath <roland@redhat.com>
|
||||||
|
|
||||||
|
* malloc/malloc.h [! __GNUC__] (__const): Define if undefined.
|
||||||
|
|
||||||
2003-05-26 Aldy Hernandez <aldyh@redhat.com>
|
2003-05-26 Aldy Hernandez <aldyh@redhat.com>
|
||||||
|
|
||||||
* soft-fp/soft-fp.h (FP_EX_UNDERFLOW): Define to 0.
|
* soft-fp/soft-fp.h (FP_EX_UNDERFLOW): Define to 0.
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/* Prototypes and definition for malloc implementation.
|
/* Prototypes and definition for malloc implementation.
|
||||||
Copyright (C) 1996, 1997, 1999, 2000, 2002 Free Software Foundation, Inc.
|
Copyright (C) 1996,1997,1999,2000,2002,2003 Free Software Foundation, Inc.
|
||||||
This file is part of the GNU C Library.
|
This file is part of the GNU C Library.
|
||||||
|
|
||||||
The GNU C Library is free software; you can redistribute it and/or
|
The GNU C Library is free software; you can redistribute it and/or
|
||||||
|
@ -85,11 +85,19 @@
|
||||||
# define __MALLOC_P(args) args
|
# define __MALLOC_P(args) args
|
||||||
# define __MALLOC_PMT(args) args
|
# define __MALLOC_PMT(args) args
|
||||||
|
|
||||||
|
# ifndef __const
|
||||||
|
# define __const const
|
||||||
|
# endif
|
||||||
|
|
||||||
# else /* Not ANSI C or C++. */
|
# else /* Not ANSI C or C++. */
|
||||||
|
|
||||||
# define __MALLOC_P(args) () /* No prototypes. */
|
# define __MALLOC_P(args) () /* No prototypes. */
|
||||||
# define __MALLOC_PMT(args) ()
|
# define __MALLOC_PMT(args) ()
|
||||||
|
|
||||||
|
# ifndef __const
|
||||||
|
# define __const
|
||||||
|
# endif
|
||||||
|
|
||||||
# endif /* ANSI C or C++. */
|
# endif /* ANSI C or C++. */
|
||||||
|
|
||||||
#endif /* GCC. */
|
#endif /* GCC. */
|
||||||
|
|
Loading…
Reference in New Issue