diff --git a/SporeModLoader/SporeModLoaderHelpers.cpp b/SporeModLoader/SporeModLoaderHelpers.cpp index af6b435..3a0d6fc 100644 --- a/SporeModLoader/SporeModLoaderHelpers.cpp +++ b/SporeModLoader/SporeModLoaderHelpers.cpp @@ -135,10 +135,10 @@ std::vector Path::GetModLibsPaths(void) std::wstring filename = entry.path().filename().wstring(); for (const auto& postfix : excludePostfixes) { - // TODO: use ends_with with mingw when we can use C++20 -#ifdef _MSC_VER + // we have to support C++17 for MinGW +#ifdef __cpp_lib_starts_ends_with if (filename.ends_with(postfix)) -#else // mingw +#else // C++17 if (filename.find(postfix) != std::wstring::npos) #endif {