Mercurial > hg > vamp-plugin-sdk
comparison src/vamp-hostsdk/Files.cpp @ 405:67704de2bb54
Win32 compile fix
author | Chris Cannam |
---|---|
date | Tue, 16 Jun 2015 13:25:13 +0100 |
parents | 732afc16cdd6 |
children | b7268e8bd292 |
comparison
equal
deleted
inserted
replaced
404:36a53eb1208e | 405:67704de2bb54 |
---|---|
173 | 173 |
174 string::size_type li = basename.rfind('/'); | 174 string::size_type li = basename.rfind('/'); |
175 if (li != string::npos) basename = basename.substr(li + 1); | 175 if (li != string::npos) basename = basename.substr(li + 1); |
176 | 176 |
177 #ifdef _WIN32 | 177 #ifdef _WIN32 |
178 string::size_type li = basename.rfind('\\'); | 178 li = basename.rfind('\\'); |
179 if (li != string::npos) basename = basename.substr(li + 1); | 179 if (li != string::npos) basename = basename.substr(li + 1); |
180 #endif | 180 #endif |
181 | 181 |
182 li = basename.find('.'); | 182 li = basename.find('.'); |
183 if (li != string::npos) basename = basename.substr(0, li); | 183 if (li != string::npos) basename = basename.substr(0, li); |