Skip to content

Commit d77b75c

Browse files
committed
fixed #476 - fixed MSYS2 compilation with MSYS msystem
1 parent a0b3f52 commit d77b75c

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

simplecpp.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2385,6 +2385,11 @@ namespace simplecpp {
23852385
namespace simplecpp {
23862386

23872387
#ifdef __CYGWIN__
2388+
static bool startsWith(const std::string &s, const std::string &p)
2389+
{
2390+
return (s.size() >= p.size()) && std::equal(p.begin(), p.end(), s.begin());
2391+
}
2392+
23882393
std::string convertCygwinToWindowsPath(const std::string &cygwinPath)
23892394
{
23902395
std::string windowsPath;

0 commit comments

Comments
 (0)