use rfx_alloc if available
authorkramm <kramm>
Thu, 8 May 2008 08:11:16 +0000 (08:11 +0000)
committerkramm <kramm>
Thu, 8 May 2008 08:11:16 +0000 (08:11 +0000)
lib/art/art_misc.h

index f8d5053..4ad22db 100644 (file)
 #include "art_config.h"
 #endif
 
+#include "../mem.h"
+#ifdef __mem_h__
+#define art_alloc rfx_alloc
+#define art_free rfx_free
+#define art_realloc rfx_realloc
+#else
 #define art_alloc malloc
 #define art_free free
 #define art_realloc realloc
+#endif
 
 /* These aren't, strictly speaking, configuration macros, but they're
    damn handy to have around, and may be worth playing with for