diff options
author | Danny Smith <dannysmith@users.sourceforge.net> | 2002-06-13 10:20:48 +0000 |
---|---|---|
committer | Danny Smith <dannysmith@users.sourceforge.net> | 2002-06-13 10:20:48 +0000 |
commit | dc8971488e7c174ab4084cbdb0a8f12c39b738d7 (patch) | |
tree | d679387fa379b6d5feb9756bdd7237347614453b /winsup/mingw/CRT_fp8.c | |
parent | 5f74ae83e5fba1ceb73a8d822cbe2b48c619127f (diff) | |
download | cygnal-dc8971488e7c174ab4084cbdb0a8f12c39b738d7.tar.gz cygnal-dc8971488e7c174ab4084cbdb0a8f12c39b738d7.tar.bz2 cygnal-dc8971488e7c174ab4084cbdb0a8f12c39b738d7.zip |
* include/_mingw.h: Increment version to 2.0.
* Makefile.in: Ditto.
Merge in mingwex branch.
Diffstat (limited to 'winsup/mingw/CRT_fp8.c')
-rw-r--r-- | winsup/mingw/CRT_fp8.c | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/winsup/mingw/CRT_fp8.c b/winsup/mingw/CRT_fp8.c new file mode 100644 index 000000000..d772d759a --- /dev/null +++ b/winsup/mingw/CRT_fp8.c @@ -0,0 +1,18 @@ +/* + * 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)(); } + +void __attribute__ ((alias ("_fpreset"))) fpreset(void); |