mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-09-08 14:17:06 +03:00
0022792: Globally defined symbol PI conflicts with VTK definition (Intel compiler)
This commit is contained in:
@@ -34,11 +34,7 @@
|
||||
#define max(a,b) (a<b ? b : a)
|
||||
#endif
|
||||
|
||||
#ifndef PI
|
||||
#define PI 3.14159
|
||||
#endif
|
||||
|
||||
#define DRAD (PI/180.)
|
||||
#define DRAD (M_PI/180.)
|
||||
|
||||
#define MAXLINES 256
|
||||
#define MAXPOLYS 256
|
||||
|
@@ -1639,9 +1639,9 @@ float a,cosa,sina ;
|
||||
pltextlist->upoints[i].y = (short int )( yp + YROTATE(x,y) );
|
||||
a = pltextlist->rangles[i] + angle ;
|
||||
if( a > 0. ) {
|
||||
while( a > 2.*PI ) a -= 2.*PI ;
|
||||
while( a > 2.*M_PI ) a -= 2.*M_PI ;
|
||||
} else if( a < 0. ) {
|
||||
while( a < -2.*PI ) a += 2.*PI ;
|
||||
while( a < -2.*M_PI ) a += 2.*M_PI ;
|
||||
}
|
||||
pltextlist->uangles[i] = a ;
|
||||
pltextlist->uscalex[i] = pltextlist->rscalex[i] ;
|
||||
@@ -1661,9 +1661,9 @@ float a,cosa,sina ;
|
||||
pptextlist->upoints[i].y = (short int )( yp + YROTATE(x,y) );
|
||||
a = pptextlist->rangles[i] + angle ;
|
||||
if( a > 0. ) {
|
||||
while( a > 2.*PI ) a -= 2.*PI ;
|
||||
while( a > 2.*M_PI ) a -= 2.*M_PI ;
|
||||
} else if( a < 0. ) {
|
||||
while( a < -2.*PI ) a += 2.*PI ;
|
||||
while( a < -2.*M_PI ) a += 2.*M_PI ;
|
||||
}
|
||||
pptextlist->uangles[i] = a ;
|
||||
pptextlist->uscalex[i] = pptextlist->rscalex[i] ;
|
||||
|
@@ -126,9 +126,9 @@ XW_ATTRIB textcode;
|
||||
ptextlist->slants[ntext] = 0. ;
|
||||
strcpy(ptextlist->ptexts[ntext],text) ;
|
||||
if( angle > 0. ) {
|
||||
while( angle > 2.*PI ) angle -= 2.*PI ;
|
||||
while( angle > 2.*M_PI ) angle -= 2.*M_PI ;
|
||||
} else if( angle < 0. ) {
|
||||
while( angle < -2.*PI ) angle += 2.*PI ;
|
||||
while( angle < -2.*M_PI ) angle += 2.*M_PI ;
|
||||
}
|
||||
ptextlist->rangles[ntext] = angle ;
|
||||
ptextlist->marges[ntext] = marge ;
|
||||
|
@@ -117,9 +117,9 @@ XW_ATTRIB textcode;
|
||||
ptextlist->slants[ntext] = 0. ;
|
||||
strcpy(ptextlist->ptexts[ntext],text) ;
|
||||
if( angle > 0. ) {
|
||||
while( angle > 2.*PI ) angle -= 2.*PI ;
|
||||
while( angle > 2.*M_PI ) angle -= 2.*M_PI ;
|
||||
} else if( angle < 0. ) {
|
||||
while( angle < -2.*PI ) angle += 2.*PI ;
|
||||
while( angle < -2.*M_PI ) angle += 2.*M_PI ;
|
||||
}
|
||||
ptextlist->rangles[ntext] = angle ;
|
||||
|
||||
|
Reference in New Issue
Block a user