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;