Merge pull request #263 from lotheac/master

don't depend on dirent DT_DIR
This commit is contained in:
Jari Sundell
2016-03-10 03:30:14 +09:00
+4
View File
@@ -75,7 +75,11 @@ PathInput::pressed(int key) {
struct _transform_filename {
void operator () (utils::directory_entry& entry) {
#ifdef __sun__
if (entry.d_type & S_IFDIR)
#else
if (entry.d_type == DT_DIR)
#endif
entry.d_name += '/';
}
};