diff options
author | DJ Delorie <dj@redhat.com> | 2004-08-06 15:38:11 +0000 |
---|---|---|
committer | DJ Delorie <dj@redhat.com> | 2004-08-06 15:38:11 +0000 |
commit | deaa6723d2a35d46bc95cd4d7b295596893a158c (patch) | |
tree | 456b7b6be0aa0b25d0cafa6f267e6a41a5a8a8cc /include/libiberty.h | |
parent | bf0d233dddf80e14b82708484327885bab6765b4 (diff) | |
download | gdb-deaa6723d2a35d46bc95cd4d7b295596893a158c.zip gdb-deaa6723d2a35d46bc95cd4d7b295596893a158c.tar.gz gdb-deaa6723d2a35d46bc95cd4d7b295596893a158c.tar.bz2 |
merge from gcc
Diffstat (limited to 'include/libiberty.h')
-rw-r--r-- | include/libiberty.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/libiberty.h b/include/libiberty.h index 68eeeae..a90b4dd 100644 --- a/include/libiberty.h +++ b/include/libiberty.h @@ -261,14 +261,14 @@ extern double physmem_available PARAMS ((void)); #define XNEW(T) ((T *) xmalloc (sizeof (T))) #define XCNEW(T) ((T *) xcalloc (1, sizeof (T))) -#define XDELETE(P) free ((P)) +#define XDELETE(P) free ((void*) (P)) /* Array allocators. */ #define XNEWVEC(T, N) ((T *) xmalloc (sizeof (T) * (N))) #define XCNEWVEC(T, N) ((T *) xcalloc ((N), sizeof (T))) -#define XRESIZEVEC(T, P, N) ((T *) xrealloc ((P), sizeof (T) * (N))) -#define XDELETEVEC(P) free ((P)) +#define XRESIZEVEC(T, P, N) ((T *) xrealloc ((void *) (P), sizeof (T) * (N))) +#define XDELETEVEC(P) free ((void*) (P)) /* Allocators for variable-sized structures and raw buffers. */ |