aboutsummaryrefslogtreecommitdiffstats
path: root/xmalloc.c
diff options
context:
space:
mode:
authorMatthias Andree <matthias.andree@gmx.de>2016-12-11 15:27:08 +0100
committerMatthias Andree <matthias.andree@gmx.de>2016-12-11 22:06:12 +0100
commitab4dd923d778048d5ba4a0bab7e730d0c157b322 (patch)
tree457480487346cdb8ffc5105d0791891e158893f9 /xmalloc.c
parente77d739e6a5ef96607f21229fb03530934b71d75 (diff)
downloadfetchmail-ab4dd923d778048d5ba4a0bab7e730d0c157b322.tar.gz
fetchmail-ab4dd923d778048d5ba4a0bab7e730d0c157b322.tar.bz2
fetchmail-ab4dd923d778048d5ba4a0bab7e730d0c157b322.zip
Fix portability to C90 and C++.
Diffstat (limited to 'xmalloc.c')
-rw-r--r--xmalloc.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/xmalloc.c b/xmalloc.c
index c2ca4a66..44143a70 100644
--- a/xmalloc.c
+++ b/xmalloc.c
@@ -6,6 +6,7 @@
*/
#include "config.h"
+#include "xmalloc.h"
#include <sys/types.h>
#include <stdio.h>
#include <errno.h>
@@ -16,12 +17,6 @@
#include "fetchmail.h"
#include "i18n.h"
-#if defined(HAVE_VOIDPOINTER)
-#define XMALLOCTYPE void
-#else
-#define XMALLOCTYPE char
-#endif
-
XMALLOCTYPE *
xmalloc (size_t n)
{