From 3e8a7100939b0cc558caaaddb05e74d658b310d1 Mon Sep 17 00:00:00 2001 From: Michael R Sweet Date: Thu, 20 Dec 2001 19:43:17 +0000 Subject: [PATCH] WIN32 fixes. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1884 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- src/filename_isdir.cxx | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/filename_isdir.cxx b/src/filename_isdir.cxx index 612241fd7..069cf8d23 100644 --- a/src/filename_isdir.cxx +++ b/src/filename_isdir.cxx @@ -1,5 +1,5 @@ // -// "$Id: filename_isdir.cxx,v 1.4.2.5.2.3 2001/12/19 18:15:34 easysw Exp $" +// "$Id: filename_isdir.cxx,v 1.4.2.5.2.4 2001/12/20 19:43:17 easysw Exp $" // // Directory detection routines for the Fast Light Tool Kit (FLTK). // @@ -31,6 +31,12 @@ #include +#if defined(WIN32) || defined(__EMX__) && !defined(__CYGWIN__) +static inline int isdirsep(char c) {return c=='/' || c=='\\';} +#else +#define isdirsep(c) ((c)=='/') +#endif + int filename_isdir(const char* n) { struct stat s; @@ -61,5 +67,5 @@ int filename_isdir(const char* n) { } // -// End of "$Id: filename_isdir.cxx,v 1.4.2.5.2.3 2001/12/19 18:15:34 easysw Exp $". +// End of "$Id: filename_isdir.cxx,v 1.4.2.5.2.4 2001/12/20 19:43:17 easysw Exp $". //