summaryrefslogtreecommitdiff
path: root/include/libiberty.h
diff options
context:
space:
mode:
authorDJ Delorie <dj@delorie.com>2004-08-06 15:38:11 +0000
committerDJ Delorie <dj@delorie.com>2004-08-06 15:38:11 +0000
commit81c0ab438be66f1afe83a6ae4f41af49da6829a5 (patch)
tree7fe54ce9e3cdfb821f7618785bcd6f761e28417f /include/libiberty.h
parent47876732272b3c6bb22dafa077ac93acc4cf4678 (diff)
downloadgdb-81c0ab438be66f1afe83a6ae4f41af49da6829a5.tar.gz
merge from gcc
Diffstat (limited to 'include/libiberty.h')
-rw-r--r--include/libiberty.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/libiberty.h b/include/libiberty.h
index 68eeeae7396..a90b4ddcbe8 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. */