diff --git a/src/Util.cc b/src/Util.cc index 5f2e4740f99..8dda29983bd 100644 --- a/src/Util.cc +++ b/src/Util.cc @@ -34,6 +34,7 @@ #include #include #include +#include #include "ignition/gazebo/components/Actor.hh" #include "ignition/gazebo/components/Collision.hh" @@ -286,7 +287,7 @@ std::string asFullPath(const std::string &_uri, const std::string &_filePath) #endif // When SDF is loaded from a string instead of a file - if ("data-string" == _filePath) + if (std::string(sdf::kSdfStringSource) == _filePath) { ignwarn << "Can't resolve full path for relative path [" << _uri << "]. Loaded from a data-string." << std::endl;