* source/rtl/math.c
+ Extend functionalities of math error handling for DJGPP compiler.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user