2002-06-13 18:20:48 +08:00
|
|
|
/*
|
|
|
|
* CRT_FP8.c
|
|
|
|
*
|
|
|
|
* This forces calls of _fpreset to the MSVCRT function
|
|
|
|
* exported from dll. Effectively it make default
|
|
|
|
* precison same as apps built with MSVC (53-bit mantissa).
|
|
|
|
|
|
|
|
*
|
|
|
|
* To change to 64-bit mantissa, link in CRT_FP10.o before libmingw.a.
|
|
|
|
*/
|
|
|
|
|
|
|
|
/* Link against the _fpreset visible in import lib */
|
|
|
|
|
|
|
|
extern void (*_imp___fpreset)(void) ;
|
|
|
|
void _fpreset (void)
|
|
|
|
{ (*_imp___fpreset)(); }
|
|
|
|
|
2009-07-18 23:09:18 +08:00
|
|
|
#if defined(__PCC__)
|
|
|
|
void _Pragma("alias _fpreset") fpreset(void);
|
|
|
|
#else
|
2002-06-13 18:20:48 +08:00
|
|
|
void __attribute__ ((alias ("_fpreset"))) fpreset(void);
|
2009-07-18 23:09:18 +08:00
|
|
|
#endif
|