diff options
author | dgp <dgp@users.sourceforge.net> | 2012-11-14 16:57:23 (GMT) |
---|---|---|
committer | dgp <dgp@users.sourceforge.net> | 2012-11-14 16:57:23 (GMT) |
commit | 9319d1c4b1fe0c2d64a56400216cabfb1e48def8 (patch) | |
tree | a889ffc7a1e80f0f70f72141361a71063ef19a5f /win | |
parent | 06dc80fde654e478553747af4f33cbd4cea98963 (diff) | |
parent | 284b205a9a4c6d334b4f752ea17018f610a960bb (diff) | |
download | tcl-9319d1c4b1fe0c2d64a56400216cabfb1e48def8.zip tcl-9319d1c4b1fe0c2d64a56400216cabfb1e48def8.tar.gz tcl-9319d1c4b1fe0c2d64a56400216cabfb1e48def8.tar.bz2 |
merge trunk
Diffstat (limited to 'win')
-rw-r--r-- | win/tclWinThrd.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/win/tclWinThrd.c b/win/tclWinThrd.c index 088e9ff..7b0f6f8 100644 --- a/win/tclWinThrd.c +++ b/win/tclWinThrd.c @@ -16,6 +16,14 @@ #include <float.h> #include <sys/stat.h> +/* Workaround for mingw versions which don't provide this in float.h */ +#ifndef _MCW_EM +# define _MCW_EM 0x0008001F /* Error masks */ +# define _MCW_RC 0x00000300 /* Rounding */ +# define _MCW_PC 0x00030000 /* Precision */ +_CRTIMP unsigned int __cdecl _controlfp (unsigned int unNew, unsigned int unMask); +#endif + /* * This is the master lock used to serialize access to other serialization * data structures. |