From 6f9a72d54e040bcc57c2b4928cbc722e8b779cf7 Mon Sep 17 00:00:00 2001 From: Just van Rossum Date: Thu, 2 Mar 2000 01:09:28 +0000 Subject: [PATCH] ft_basename(): if compiled for MacOS, use the Mac path separator --- demos/src/common.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/demos/src/common.c b/demos/src/common.c index 8a5740535..fe59e9b8c 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++;