Revert "Merge pull request #188 from libtom/unused_xcalloc" This reverts commit 27417b85c72ee1417050e65507aab11ccf42e03a, reversing changes made to d449bd44c02e1308af7b4ae30310799d26d38496.
diff --git a/tommath_private.h b/tommath_private.h
index 057f878..56debfc 100644
--- a/tommath_private.h
+++ b/tommath_private.h
@@ -32,10 +32,12 @@ extern "C" {
# define XMALLOC(size) malloc(size)
# define XFREE(mem, size) free(mem)
# define XREALLOC(mem, oldsize, newsize) realloc(mem, newsize)
+# define XCALLOC calloc
#else
/* prototypes for our heap functions */
extern void *XMALLOC(size_t size);
extern void *XREALLOC(void *mem, size_t oldsize, size_t newsize);
+extern void *XCALLOC(size_t n, size_t s);
extern void XFREE(void *mem, size_t size);
#endif