From 013642b99490e1082fce241c4980190516697946 Mon Sep 17 00:00:00 2001 From: Jean-Francois Dockes Date: Tue, 29 Sep 2020 13:43:26 +0200 Subject: [PATCH] small path_xx windows adjustemnts --- src/utils/pathut.cpp | 3 ++- src/utils/rclutil.cpp | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/utils/pathut.cpp b/src/utils/pathut.cpp index c2d50caa..164eaa1c 100644 --- a/src/utils/pathut.cpp +++ b/src/utils/pathut.cpp @@ -1299,7 +1299,8 @@ bool PathDirContents::opendir() CLOSEDIR(m->dirhdl); m->dirhdl = nullptr; } - SYSPATH(m->dirpath, sysdir); + const std::string& dp{m->dirpath}; + SYSPATH(dp, sysdir); m->dirhdl = OPENDIR(sysdir); #ifdef _WIN32 int rc = GetLastError(); diff --git a/src/utils/rclutil.cpp b/src/utils/rclutil.cpp index dcc358be..5faf6e00 100644 --- a/src/utils/rclutil.cpp +++ b/src/utils/rclutil.cpp @@ -25,6 +25,7 @@ #include "cstr.h" #ifdef _WIN32 #include "safewindows.h" +#include #else #include #include