diff --git a/src/UsgsAstroLsSensorModel.cpp b/src/UsgsAstroLsSensorModel.cpp
index 6177b347abef538ec8c1ba298f4f3601656cf3b2..85e06be485c423ad46601db1beb4114eb6e1f370 100644
--- a/src/UsgsAstroLsSensorModel.cpp
+++ b/src/UsgsAstroLsSensorModel.cpp
@@ -2514,7 +2514,7 @@ void UsgsAstroLsSensorModel::setLinearApproximation()
   double height, aPrec;
   double desired_precision = 0.01;
   computeElevation(refPt.x, refPt.y, refPt.z, height, aPrec, desired_precision);
-  if (isnan(height))
+  if (std::isnan(height))
   {
     MESSAGE_LOG(m_logger, "setLinearApproximation: computeElevation of"
                                 "reference point {} {} {} with desired precision"