0026823: Configuration - use EGL on another platform without GLX
[occt.git] / src / ElCLib / ElCLib.cxx
index cacd77c..9d4f8f4 100644 (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
 }
 
 //=======================================================================