diff liboctave/file-ops.cc @ 4097:596f88296519

[project @ 2002-10-09 20:26:27 by jwe]
author jwe
date Wed, 09 Oct 2002 20:26:27 +0000
parents e5966ddef842
children 3add04256a60
line wrap: on
line diff
--- a/liboctave/file-ops.cc	Wed Oct 09 18:47:16 2002 +0000
+++ b/liboctave/file-ops.cc	Wed Oct 09 20:26:27 2002 +0000
@@ -620,6 +620,16 @@
   return status;
 }
 
+bool
+file_ops::is_dir_sep (char c)
+{
+#if defined (__WIN32__)
+  return (c == '/' || c == '\\');
+#else
+  return (c == '/');
+#endif
+}
+
 /*
 ;;; Local Variables: ***
 ;;; mode: C++ ***