WIN32 fixes.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1884 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
parent
df9acaafea
commit
3e8a710093
@ -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 $".
|
||||
//
|
||||
|
Loading…
Reference in New Issue
Block a user