diff options
| author | Manolo Gouy <Manolo> | 2016-04-11 13:07:08 +0000 |
|---|---|---|
| committer | Manolo Gouy <Manolo> | 2016-04-11 13:07:08 +0000 |
| commit | 5b44fe3bff5a86b888a39b27ceaa8636559e21a9 (patch) | |
| tree | 44cefad634f4b19b710f01e7de10e47790b33a9c /src/drivers/WinAPI/Fl_WinAPI_System_Driver.cxx | |
| parent | aafd8b6031e66e0b2f727197c1d1d040036ec0a8 (diff) | |
Remove compilation errors in Fl_File_Icon.cxx with MSVC compiler with new method Fl_System_Driver::file_type().
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11581 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/drivers/WinAPI/Fl_WinAPI_System_Driver.cxx')
| -rw-r--r-- | src/drivers/WinAPI/Fl_WinAPI_System_Driver.cxx | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/drivers/WinAPI/Fl_WinAPI_System_Driver.cxx b/src/drivers/WinAPI/Fl_WinAPI_System_Driver.cxx index 5b9676fdf..df5ef9f89 100644 --- a/src/drivers/WinAPI/Fl_WinAPI_System_Driver.cxx +++ b/src/drivers/WinAPI/Fl_WinAPI_System_Driver.cxx @@ -884,6 +884,18 @@ const char *Fl_WinAPI_System_Driver::next_dir_sep(const char *start) return p; } +int Fl_WinAPI_System_Driver::file_type(const char *filename) +{ + int filetype; + if (filename[strlen(filename) - 1] == '/') + filetype = Fl_File_Icon::DIRECTORY; + else if (filename_isdir(filename)) + filetype = Fl_File_Icon::DIRECTORY; + else + filetype = Fl_File_Icon::PLAIN; + return filetype; +} + // // End of "$Id$". // |
