From 4591b30da36811acb01897cec677cab60ed8601c Mon Sep 17 00:00:00 2001 From: Walter Negro Date: Sun, 14 Jul 2002 16:50:30 +0000 Subject: [PATCH] * source/rtl/math.c + Extend functionalities of math error handling for DJGPP compiler. --- harbour/source/rtl/math.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/harbour/source/rtl/math.c b/harbour/source/rtl/math.c index a9074e3fd7..71d1494482 100644 --- a/harbour/source/rtl/math.c +++ b/harbour/source/rtl/math.c @@ -55,7 +55,11 @@ * */ +#if defined(__DJGPP__) +#include +#else #include +#endif #include "hbapi.h" #include "hbapiitm.h" @@ -168,7 +172,7 @@ int matherr (struct exception * err) }; break; } - s_hb_exc.funcname = err->name; + s_hb_exc.funcname = (char *)err->name; // (char *) Avoid warning in DJGPP s_hb_exc.arg1 = err->arg1; s_hb_exc.arg2 = err->arg2; s_hb_exc.retval = err->retval;