diff --git a/codemaker/source/netmaker/csharpfile.hxx b/codemaker/source/netmaker/csharpfile.hxx index 2085bb22983c..40bc59770e3e 100644 --- a/codemaker/source/netmaker/csharpfile.hxx +++ b/codemaker/source/netmaker/csharpfile.hxx @@ -27,7 +27,7 @@ public: public: std::string getPath() const { -#if defined __cpp_lib_format_path +#if defined __cpp_lib_format_path && __cpp_lib_format_path >= 202506L return m_filePath.display_string(); #else return m_filePath.string(); diff --git a/codemaker/source/rustmaker/rustfile.cxx b/codemaker/source/rustmaker/rustfile.cxx index 0eb0b037588f..eb9625f94575 100644 --- a/codemaker/source/rustmaker/rustfile.cxx +++ b/codemaker/source/rustmaker/rustfile.cxx @@ -25,7 +25,7 @@ RustFile::RustFile(std::string_view directory, std::string_view typeName) std::string RustFile::getPath() const { -#if defined __cpp_lib_format_path +#if defined __cpp_lib_format_path && __cpp_lib_format_path >= 202506L return m_filePath.display_string(); #else return m_filePath.string(); @@ -461,7 +461,7 @@ CppFile::CppFile(std::string_view directory, std::string_view typeName, std::str std::string CppFile::getPathString() const { -#if defined __cpp_lib_format_path +#if defined __cpp_lib_format_path && __cpp_lib_format_path >= 202506L return m_filePath.display_string(); #else return m_filePath.string();