From 6da56f1f0f6942e3fc257d8396588804c5891e93 Mon Sep 17 00:00:00 2001 From: Alan Mishchenko Date: Fri, 16 May 2008 08:01:00 -0700 Subject: Version abc80516 --- src/misc/vec/vec.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/misc/vec/vec.h') diff --git a/src/misc/vec/vec.h b/src/misc/vec/vec.h index 4091ac7f..ee82fc3e 100644 --- a/src/misc/vec/vec.h +++ b/src/misc/vec/vec.h @@ -72,6 +72,10 @@ typedef long long sint64; #define ALLOC(type, num) ((type *) malloc(sizeof(type) * (num))) #endif +#ifndef CALLOC +#define CALLOC(type, num) ((type *) calloc((num), sizeof(type))) +#endif + #ifndef FREE #define FREE(obj) ((obj) ? (free((char *) (obj)), (obj) = 0) : 0) #endif -- cgit v1.2.3