Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDJ Delorie <dj@redhat.com>2004-08-06 19:38:11 +0400
committerDJ Delorie <dj@redhat.com>2004-08-06 19:38:11 +0400
commit142ed05f57021bd73bc37e1859d0a39e37b1105c (patch)
tree82049cbfc042e25d64edb35997f3b789a109753c /include/libiberty.h
parent364b9683e4e4f82119f469961270eb1a574958ae (diff)
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 68eeeae73..a90b4ddcb 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. */