Mercurial > hg > svcore
comparison plugin/LADSPAPluginFactory.cpp @ 1218:6b847a59d908 msvc2015_64
MSVC build fixes
author | Chris Cannam |
---|---|
date | Tue, 18 Oct 2016 15:54:56 +0100 |
parents | 6b1af0f05f06 |
children | 75aefcc9f07d |
comparison
equal
deleted
inserted
replaced
1217:046f05fa31f3 | 1218:6b847a59d908 |
---|---|
577 path.replace(f, 5, home); | 577 path.replace(f, 5, home); |
578 } | 578 } |
579 } | 579 } |
580 | 580 |
581 #ifdef _WIN32 | 581 #ifdef _WIN32 |
582 char *pfiles = getenv("ProgramFiles"); | 582 const char *pfiles = getenv("ProgramFiles"); |
583 if (!pfiles) pfiles = "C:\\Program Files"; | 583 if (!pfiles) pfiles = "C:\\Program Files"; |
584 { | 584 { |
585 std::string::size_type f; | 585 std::string::size_type f; |
586 while ((f = path.find("%ProgramFiles%")) != std::string::npos && | 586 while ((f = path.find("%ProgramFiles%")) != std::string::npos && |
587 f < path.length()) { | 587 f < path.length()) { |