gc: disable Boehm general malloc and calloc overtaking
authorJulien Chevalier <chevjulien@gmail.com>
Mon, 17 Aug 2009 19:57:06 +0000 (15:57 -0400)
committerJean Privat <jean@pryen.org>
Mon, 17 Aug 2009 20:15:30 +0000 (16:15 -0400)
Trivially-hacked-by: Jean Privat <jean@pryen.org>

Signed-off-by: Julien Chevalier <chevjulien@gmail.com>
Signed-off-by: Jean Privat <jean@pryen.org>

clib/nit_common.h

index 8a7ca0c..8bf9cfc 100644 (file)
 #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 signed long int bigint;        /* standard int value, must be larger that any poiner */
 typedef bigint (*fun_t) (bigint);                                      /* generic function pointer */