summaryrefslogtreecommitdiffstats
path: root/generic/tkTrig.c
diff options
context:
space:
mode:
authorpatthoyts@users.sourceforge.net <patthoyts>2007-10-31 00:05:53 (GMT)
committerpatthoyts@users.sourceforge.net <patthoyts>2007-10-31 00:05:53 (GMT)
commit15f1e562d74586992ac9f70a1d2ca2a476a5de71 (patch)
tree725411d7c5a0246b447ff0f328f6cdfd86acf997 /generic/tkTrig.c
parent75f1eeb1f6508bc4e2328120c44cad57d73eea6b (diff)
downloadtk-15f1e562d74586992ac9f70a1d2ca2a476a5de71.zip
tk-15f1e562d74586992ac9f70a1d2ca2a476a5de71.tar.gz
tk-15f1e562d74586992ac9f70a1d2ca2a476a5de71.tar.bz2
Use -fp:strict with msvc8 as -fp:precise fails on amd64 builds. Fix
the two places in Tk that generate errors with msvc8 when using this flag.
Diffstat (limited to 'generic/tkTrig.c')
-rw-r--r--generic/tkTrig.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/generic/tkTrig.c b/generic/tkTrig.c
index 9c8d077..f9bdfe5 100644
--- a/generic/tkTrig.c
+++ b/generic/tkTrig.c
@@ -11,7 +11,7 @@
* See the file "license.terms" for information on usage and redistribution of
* this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tkTrig.c,v 1.8 2007/09/07 00:34:54 dgp Exp $
+ * RCS: @(#) $Id: tkTrig.c,v 1.9 2007/10/31 00:05:53 patthoyts Exp $
*/
#include <stdio.h>
@@ -1599,7 +1599,11 @@ TkGetMiterPoints(
double deltaX, deltaY; /* X and y offsets cooresponding to dist
* (fudge factors for bounding box). */
double p1x, p1y, p2x, p2y, p3x, p3y;
- static double elevenDegrees = (11.0*2.0*PI)/360.0;
+#ifndef _MSC_VER
+ static const double elevenDegrees = (11.0*2.0*PI)/360.0;
+#else /* msvc8 with -fp:strict requires it this way */
+ static const double elevenDegrees = 0.19198621771937624;
+#endif
/*
* Round the coordinates to integers to mimic what happens when the line