summaryrefslogtreecommitdiff
path: root/src/compat.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/compat.h')
-rw-r--r--src/compat.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/compat.h b/src/compat.h
index c2b4128..65a0c8e 100644
--- a/src/compat.h
+++ b/src/compat.h
@@ -192,6 +192,10 @@ void vwarnx(const char *fmt, va_list ap);
void* reallocf(void* p, size_t sz);
#endif
+#ifndef HAVE_MALLOCF
+void* mallocf(size_t sz);
+#endif
+
/* Some number conversion stuff */
#include <wchar.h>
@@ -223,7 +227,7 @@ void* reallocf(void* p, size_t sz);
#ifdef _WIN32
- #ifdef SIZEOF_WHCHAR_T != 2
+ #if SIZEOF_WHCHAR_T != 2
#error Incompatible size of wchar_t
#endif