* source/rtl/math.c

+ Extend functionalities of math error handling for DJGPP compiler.
This commit is contained in:
Walter Negro
2002-07-14 16:50:30 +00:00
parent 294547aa42
commit 4591b30da3

View File

@@ -55,7 +55,11 @@
*
*/
#if defined(__DJGPP__)
#include <libm/math.h>
#else
#include <math.h>
#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;