summaryrefslogtreecommitdiffstats
path: root/src/misc/vec/vec.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/misc/vec/vec.h')
-rw-r--r--src/misc/vec/vec.h4
1 files changed, 4 insertions, 0 deletions
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