1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-14 13:30:48 +03:00

0026823: Configuration - use EGL on another platform without GLX

This commit is contained in:
ibs
2015-10-28 18:24:34 +03:00
committed by bugmaster
parent c85385c0e2
commit d8d01f6ed6
31 changed files with 134 additions and 78 deletions

View File

@@ -1342,7 +1342,12 @@ Standard_Real ElCLib::HyperbolaParameter (const gp_Ax2& Pos,
Standard_Real sht =
gp_Vec(Pos.Location (), P).Dot
(gp_Vec (Pos.YDirection())) / MinorRadius;
#if __cplusplus >= 201103L
return std::asinh(sht);
#else
return asinh(sht);
#endif
}
//=======================================================================
@@ -1421,7 +1426,11 @@ 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;
return asinh(sht);
#if __cplusplus >= 201103L
return std::asinh(sht);
#else
return asinh(sht);
#endif
}
//=======================================================================