summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/share/grabbag/file.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/share/grabbag/file.c b/src/share/grabbag/file.c
index 924650a2..b7594292 100644
--- a/src/share/grabbag/file.c
+++ b/src/share/grabbag/file.c
@@ -84,8 +84,10 @@ const char *grabbag__file_get_basename(const char *srcpath)
p = strrchr(srcpath, '/');
if(0 == p) {
+#if defined _WIN32 && !defined __CYGWIN__
p = strrchr(srcpath, '\\');
if(0 == p)
+#endif
return srcpath;
}
return ++p;