no declaration of free needed
authorMatthias Braun <matze@braunis.de>
Mon, 18 Feb 2008 14:19:15 +0000 (14:19 +0000)
committerMatthias Braun <matze@braunis.de>
Mon, 18 Feb 2008 14:19:15 +0000 (14:19 +0000)
[r17768]

include/libfirm/adt/xmalloc.h

index deb29f5..63ffff0 100644 (file)
@@ -29,6 +29,7 @@
 #define FIRM_ADT_XMALLOC_H
 
 #include <stddef.h>
+#include <stdlib.h>
 
 /* xmalloc() & friends. */
 
@@ -36,7 +37,6 @@ void *xmalloc(size_t size);
 void *xcalloc(size_t num, size_t size);
 void *xrealloc(void *ptr, size_t size);
 char *xstrdup(const char *str);
-void free(void *ptr);
 
 #define xfree(ptr)      free(ptr)