OSDN Git Service

Extend basic test suite infrastructure to w32api.
[mingw/mingw-org-wsl.git] / mingwrt / CRT_fp8.c
1 /*
2  * CRT_FP8.c
3  *
4  * This forces calls of _fpreset to the MSVCRT function
5  * exported from dll.  Effectively it make default
6  * precison same as apps built with MSVC (53-bit mantissa).
7
8  *
9  * To change to 64-bit mantissa, link in CRT_FP10.o before libmingw.a.
10  */
11
12 /* Link against the _fpreset visible in import lib */
13
14 extern void (*_imp___fpreset)(void) ;
15 void _fpreset (void)
16 {  (*_imp___fpreset)(); }
17
18 #if defined(__PCC__)
19 void _Pragma("alias _fpreset") fpreset(void);
20 #else
21 void __attribute__ ((alias ("_fpreset"))) fpreset(void);
22 #endif