diff --git a/dart/common/Filesystem.hpp b/dart/common/Filesystem.hpp index e04acb2d7647e..7e16909b2e94d 100644 --- a/dart/common/Filesystem.hpp +++ b/dart/common/Filesystem.hpp @@ -25,7 +25,8 @@ * POSSIBILITY OF SUCH DAMAGE. */ -#pragma once +#ifndef DART_COMMON_FILESYSTEM_HPP_ +#define DART_COMMON_FILESYSTEM_HPP_ #include "dart/common/Platform.hpp" @@ -107,3 +108,5 @@ using error_code = ::std::error_code; #endif #endif // #ifndef DART_INCLUDE_STD_FILESYSTEM_EXPERIMENTAL + +#endif // #ifndef DART_COMMON_FILESYSTEM_HPP_ diff --git a/dart/gui/osg/render/MeshShapeNode.cpp b/dart/gui/osg/render/MeshShapeNode.cpp index a5537ef4725c1..b8ac0f196ddae 100644 --- a/dart/gui/osg/render/MeshShapeNode.cpp +++ b/dart/gui/osg/render/MeshShapeNode.cpp @@ -315,7 +315,7 @@ void MeshShapeNode::extractData(bool firstTime) const common::filesystem::path relativeImagePath = imagePath.C_Str(); const common::filesystem::path absoluteImagePath = common::filesystem::canonical( - relativeImagePath, meshPath.parent_path(), ec); + meshPath.parent_path() / relativeImagePath, ec); if (ec) {