summaryrefslogtreecommitdiff
path: root/Build/source/texk/ttf2pk/newobj.c
diff options
context:
space:
mode:
Diffstat (limited to 'Build/source/texk/ttf2pk/newobj.c')
-rw-r--r--Build/source/texk/ttf2pk/newobj.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/Build/source/texk/ttf2pk/newobj.c b/Build/source/texk/ttf2pk/newobj.c
index 1c741f99e29..eede1470a9d 100644
--- a/Build/source/texk/ttf2pk/newobj.c
+++ b/Build/source/texk/ttf2pk/newobj.c
@@ -22,6 +22,7 @@
#include "texenc.h"
+#if !defined(HAVE_LIBKPATHSEA)
void *
mymalloc(size_t len)
{
@@ -46,6 +47,20 @@ mymalloc(size_t len)
void *
+mycalloc(size_t nmemb, size_t len)
+{
+ void *p;
+
+ p = calloc(nmemb ? nmemb : 1, len ? len : 1);
+
+ if (p == NULL)
+ oops("Out of memory.");
+
+ return p;
+}
+
+
+void *
myrealloc(void *oldp, size_t len)
{
void *p;
@@ -66,6 +81,7 @@ myrealloc(void *oldp, size_t len)
return p;
}
+#endif
/*