diff options
-rw-r--r-- | fetchmail.h | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/fetchmail.h b/fetchmail.h index 063b2a16..f1edb8d7 100644 --- a/fetchmail.h +++ b/fetchmail.h @@ -197,10 +197,6 @@ void gen_send (); int gen_transact (); #endif -void *xmalloc(int); -void *xrealloc(void *, int); -char *xstrdup(const char *); - int do_protocol(struct query *, const struct method *); int doPOP2 (struct query *); int doPOP3 (struct query *); @@ -243,6 +239,16 @@ void escapes(const char *, char *); void yyerror(const char *); int yylex(void); +#if defined(HAVE_VOIDPOINTER) +#define XMALLOCTYPE void +#else +#define XMALLOCTYPE char +#endif + +XMALLOCTYPE *xmalloc(int); +XMALLOCTYPE *xrealloc(XMALLOCTYPE *, int); +char *xstrdup(const char *); + #define FALSE 0 #define TRUE 1 |