#include <stdio.h>
#include <string.h>
+#ifdef WITH_LIBGC
+#include <gc/gc.h>
+#define malloc(x) GC_MALLOC((x))
+#define calloc(x,y) GC_MALLOC((x)*(y))
+#endif
+
/* *** Types *** */
typedef int (*fun_t)(int); /* generic function pointer */
typedef unsigned int cid_t; /* class identifier */