diff options
| author | nijtmans@users.sourceforge.net <jan.nijtmans> | 2012-11-14 09:12:17 (GMT) |
|---|---|---|
| committer | nijtmans@users.sourceforge.net <jan.nijtmans> | 2012-11-14 09:12:17 (GMT) |
| commit | 96566452f49919d3085275de74aa4db2b9fbb2dd (patch) | |
| tree | 5c540f748346d27d74b0ae70b30a4ca260ca00a7 | |
| parent | 66b570cba3206c9d8f0a8ad0c786eee1690a1d90 (diff) | |
| parent | 6a30408f0fb6939cb0d4e8f9a09d7909f76b1926 (diff) | |
| download | tcl-96566452f49919d3085275de74aa4db2b9fbb2dd.zip tcl-96566452f49919d3085275de74aa4db2b9fbb2dd.tar.gz tcl-96566452f49919d3085275de74aa4db2b9fbb2dd.tar.bz2 | |
Workaround for mingw versions which don't provide _fpcontrol in float.h
| -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. |
