diff options
| author | Michael R Sweet <michael.r.sweet@gmail.com> | 2001-12-20 19:43:17 +0000 |
|---|---|---|
| committer | Michael R Sweet <michael.r.sweet@gmail.com> | 2001-12-20 19:43:17 +0000 |
| commit | 3e8a7100939b0cc558caaaddb05e74d658b310d1 (patch) | |
| tree | 9cfb9590b79cfe0ead8bb8e2b81206736afe7e0e /src/filename_isdir.cxx | |
| parent | df9acaafea434e12d21077a7806867c99217a57d (diff) | |
WIN32 fixes.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1884 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/filename_isdir.cxx')
| -rw-r--r-- | src/filename_isdir.cxx | 10 |
1 files 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 <FL/filename.H> +#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 $". // |
