Commit 6f9a72d54e040bcc57c2b4928cbc722e8b779cf7

Just van Rossum 2000-03-02T01:09:28

ft_basename(): if compiled for MacOS, use the Mac path separator

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
diff --git a/demos/src/common.c b/demos/src/common.c
index 8a57405..fe59e9b 100644
--- a/demos/src/common.c
+++ b/demos/src/common.c
@@ -212,7 +212,11 @@
   
     while ( c )
     {
+#ifndef macintosh
       if ( c == '/' || c == '\\' )
+#else
+      if ( c == ':' )
+#endif
         base = current + 1;
 
       current++;