diff --git a/tiny_obj_loader.h b/tiny_obj_loader.h index 5127a2e..f63ff02 100644 --- a/tiny_obj_loader.h +++ b/tiny_obj_loader.h @@ -44,6 +44,7 @@ #include #include #include +#include namespace tinyobj { @@ -138,9 +139,9 @@ public: void normalize() { - const float length = sqrt( ( coord[0] * coord[0] ) + - ( coord[1] * coord[1] ) + - ( coord[2] * coord[2] ) ); + const float length = std::sqrt( ( coord[0] * coord[0] ) + + ( coord[1] * coord[1] ) + + ( coord[2] * coord[2] ) ); if( length != 1 ) { coord[0] = (coord[0] / length);