Mercurial > hg > vamp-plugin-load-checker
comparison src/knownplugins.cpp @ 12:92e72014d979
MSVC build fixes
author | Chris Cannam |
---|---|
date | Tue, 18 Oct 2016 13:14:55 +0100 |
parents | af46a17798be |
children | 45ad9f91f977 |
comparison
equal
deleted
inserted
replaced
11:9f62684e1911 | 12:92e72014d979 |
---|---|
135 path.replace(f, 5, home); | 135 path.replace(f, 5, home); |
136 } | 136 } |
137 } | 137 } |
138 | 138 |
139 #ifdef _WIN32 | 139 #ifdef _WIN32 |
140 char *pfiles = getenv("ProgramFiles"); | 140 const char *pfiles = getenv("ProgramFiles"); |
141 if (!pfiles) pfiles = "C:\\Program Files"; | 141 if (!pfiles) pfiles = "C:\\Program Files"; |
142 { | 142 { |
143 string::size_type f; | 143 string::size_type f; |
144 while ((f = path.find("%ProgramFiles%")) != string::npos && | 144 while ((f = path.find("%ProgramFiles%")) != string::npos && |
145 f < path.length()) { | 145 f < path.length()) { |