changeset 403:732afc16cdd6

And a further win32 fix
author Chris Cannam
date Tue, 16 Jun 2015 13:01:59 +0100
parents f23dd109144f
children 36a53eb1208e
files src/vamp-hostsdk/Files.cpp
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/vamp-hostsdk/Files.cpp	Tue Jun 16 12:59:57 2015 +0100
+++ b/src/vamp-hostsdk/Files.cpp	Tue Jun 16 13:01:59 2015 +0100
@@ -174,6 +174,11 @@
     string::size_type li = basename.rfind('/');
     if (li != string::npos) basename = basename.substr(li + 1);
 
+#ifdef _WIN32
+    string::size_type li = basename.rfind('\\');
+    if (li != string::npos) basename = basename.substr(li + 1);
+#endif
+
     li = basename.find('.');
     if (li != string::npos) basename = basename.substr(0, li);