mirror of
https://github.com/Open-Cascade-SAS/OCCT.git
synced 2026-05-16 06:25:04 +08:00
0026867: Configuration - update any comparison including __cplusplus macro to remove one
__cplusplus >= 201103L replaced with __QNX__ macro
This commit is contained in:
@@ -1343,7 +1343,7 @@ Standard_Real ElCLib::HyperbolaParameter (const gp_Ax2& Pos,
|
||||
gp_Vec(Pos.Location (), P).Dot
|
||||
(gp_Vec (Pos.YDirection())) / MinorRadius;
|
||||
|
||||
#if __cplusplus >= 201103L
|
||||
#if __QNX__
|
||||
return std::asinh(sht);
|
||||
#else
|
||||
return asinh(sht);
|
||||
@@ -1426,7 +1426,7 @@ Standard_Real ElCLib::HyperbolaParameter (const gp_Ax22d& Pos,
|
||||
{
|
||||
gp_Vec2d V (Pos.YDirection().XY());
|
||||
Standard_Real sht = gp_Vec2d(Pos.Location(),P).Dot(V) /MinorRadius;
|
||||
#if __cplusplus >= 201103L
|
||||
#if __QNX__
|
||||
return std::asinh(sht);
|
||||
#else
|
||||
return asinh(sht);
|
||||
|
||||
@@ -240,7 +240,7 @@ Standard_Real ATanh(const Standard_Real Value)
|
||||
cout << "Illegal agument in ATanh" << endl ;
|
||||
#endif
|
||||
}
|
||||
#if __cplusplus >= 201103L
|
||||
#if __QNX__
|
||||
return std::atanh(Value);
|
||||
#else
|
||||
return atanh(Value);
|
||||
@@ -258,7 +258,7 @@ Standard_Real ACosh (const Standard_Real Value)
|
||||
cout << "Illegal agument in ACosh" << endl ;
|
||||
#endif
|
||||
}
|
||||
#if __cplusplus >= 201103L
|
||||
#if __QNX__
|
||||
return std::acosh(Value);
|
||||
#else
|
||||
return acosh(Value);
|
||||
|
||||
@@ -294,8 +294,8 @@ inline Standard_Real Sinh(const Standard_Real Value)
|
||||
//-------------------------------------------------------------------
|
||||
// ASinh : Returns the hyperbolic arc sine of a real
|
||||
//-------------------------------------------------------------------
|
||||
inline Standard_Real ASinh(const Standard_Real Value)
|
||||
#if __cplusplus >= 201103L
|
||||
inline Standard_Real ASinh(const Standard_Real Value)
|
||||
#if __QNX__
|
||||
{ return std::asinh(Value); }
|
||||
#else
|
||||
{ return asinh(Value); }
|
||||
|
||||
Reference in New Issue
Block a user