From c5f0be2b32fa2a802ce440a00e68540102ce2f3d Mon Sep 17 00:00:00 2001 From: Bruno Date: Fri, 30 Jul 2021 21:36:47 +0200 Subject: [PATCH] Compilation Linux --- SystemToolkit.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/SystemToolkit.cpp b/SystemToolkit.cpp index ec9f1e9..00cc1e5 100644 --- a/SystemToolkit.cpp +++ b/SystemToolkit.cpp @@ -7,6 +7,7 @@ #include #include #include +#include using namespace std; @@ -360,7 +361,7 @@ string SystemToolkit::path_relative_to_path( const string& absolutePath, const s size_t length = MINI( absoluteDirectories.size(), relativeToDirectories.size() ); // Use to determine where in the loop we exited - size_t lastCommonRoot = SIZE_T_MAX; + size_t lastCommonRoot = SIZE_MAX; size_t index = 0; // Find common root @@ -372,7 +373,7 @@ string SystemToolkit::path_relative_to_path( const string& absolutePath, const s } // If we didn't find a common prefix then return base absolute path - if (lastCommonRoot == SIZE_T_MAX || absoluteDirectories.size() < 1) + if (lastCommonRoot == SIZE_MAX || absoluteDirectories.size() < 1) return absolutePath; // Add the '..'