diff options
author | Rüdiger Timm <rt@openoffice.org> | 2004-05-19 12:17:32 +0000 |
---|---|---|
committer | Rüdiger Timm <rt@openoffice.org> | 2004-05-19 12:17:32 +0000 |
commit | 58f4243aa3cbff8136df653b40dc111596135aa8 (patch) | |
tree | b4b8300b26167f3fdbbce54b8d5b83e830d6b496 | |
parent | b6eb07fdedd0e8122b1803aab5abfccfeb302fb9 (diff) |
INTEGRATION: CWS hr4 (1.6.14); FILE MERGED
2004/05/19 11:39:49 hr 1.6.14.2: #i29326#: Visual C** needs _USE_MATH_DEFINES for math constants
2004/05/19 11:25:28 hr 1.6.14.1: #i29326#: remove dependency on tools
-rw-r--r-- | basegfx/source/curve/b2dbeziertools.cxx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/basegfx/source/curve/b2dbeziertools.cxx b/basegfx/source/curve/b2dbeziertools.cxx index 49e0cbe1890e..906ae45a0d27 100644 --- a/basegfx/source/curve/b2dbeziertools.cxx +++ b/basegfx/source/curve/b2dbeziertools.cxx @@ -2,9 +2,9 @@ * * $RCSfile: b2dbeziertools.cxx,v $ * - * $Revision: 1.6 $ + * $Revision: 1.7 $ * - * last change: $Author: thb $ $Date: 2004-02-04 12:13:18 $ + * last change: $Author: rt $ $Date: 2004-05-19 13:17:32 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -61,10 +61,10 @@ #include <limits> #include <algorithm> - -#ifndef _SOLAR_H -#include <tools/solar.h> // F_PI definition, no link dependency +#ifndef _USE_MATH_DEFINES +#define _USE_MATH_DEFINES // needed by Visual C++ for math constants #endif +#include <math.h> // M_PI definition #ifndef _BGFX_CURVE_B2DCUBICBEZIER_HXX #include <basegfx/curve/b2dcubicbezier.hxx> @@ -149,7 +149,7 @@ namespace public: AngleErrorFunctor( const double& angleBounds ) : // take positive branch, convert from degree to radiant - mfTanAngle( tan( fabs(angleBounds)/180.0*F_PI ) ), + mfTanAngle( tan( fabs(angleBounds)/180.0*M_PI ) ), mfLastTanAngle( ::std::numeric_limits<double>::max() ) { } |