From 0be9eeeb16f3885ae700219be9a4e1d86f2c0c0f Mon Sep 17 00:00:00 2001 From: Rob Swindell <rob@synchro.net> Date: Mon, 16 Nov 2020 19:27:10 -0800 Subject: [PATCH] A better fix for error: "<malloc.h> has been replaced by <stdlib.h>" --- src/xpdev/strwrap.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/xpdev/strwrap.c b/src/xpdev/strwrap.c index 8711d4396d..00fff9a4c5 100644 --- a/src/xpdev/strwrap.c +++ b/src/xpdev/strwrap.c @@ -1,8 +1,6 @@ #include <stdio.h> +#include <stdlib.h> #include <string.h> -#if defined(_WIN32) && !defined(_MSC_VER) - #include <malloc.h> -#endif #if !defined _MSC_VER && !defined __BORLANDC__ char* itoa(int val, char* str, int radix) -- GitLab