1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-19 13:40:49 +03:00

0022792: Globally defined symbol PI conflicts with VTK definition (Intel compiler)

This commit is contained in:
DBV
2011-12-16 08:50:03 +00:00
committed by bugmaster
parent bc650d4170
commit c6541a0c86
438 changed files with 2142 additions and 2188 deletions

View File

@@ -35,12 +35,12 @@ void LProp_AnalyticCurInf::Perform (const GeomAbs_CurveType CType,
case GeomAbs_Ellipse:
{
Standard_Real U1,U2,U3,U4;
Standard_Real UFPlus2PI = UFirst + 2*PI;
Standard_Real UFPlus2PI = UFirst + 2*M_PI;
U1 = ElCLib::InPeriod(0.0 ,UFirst,UFPlus2PI);
U2 = ElCLib::InPeriod(PI/2. ,UFirst,UFPlus2PI);
U3 = ElCLib::InPeriod(PI ,UFirst,UFPlus2PI);
U4 = ElCLib::InPeriod(3.*PI/2.,UFirst,UFPlus2PI);
U2 = ElCLib::InPeriod(M_PI/2. ,UFirst,UFPlus2PI);
U3 = ElCLib::InPeriod(M_PI ,UFirst,UFPlus2PI);
U4 = ElCLib::InPeriod(3.*M_PI/2.,UFirst,UFPlus2PI);
if (UFirst <= U1 && U1 <= ULast) {Result.AddExtCur(U1, IsMin);}
if (UFirst <= U2 && U2 <= ULast) {Result.AddExtCur(U2, IsMax);}