Re: [hatari-devel] Re: [hatari-users] SDL GUI keyboard shortcuts

[ Thread Index | Date Index | More lists.tuxfamily.org/hatari-devel Archives ]


Le 12/08/2014 23:18, Nicolas Pomarède a écrit :

Note that when compiling with mingw, d_type member of the structure
dirent doesn't exist in that case.

So there should be a define set by cmake to check if d_type member
exists or not and maybe default to 'alphasort' in that case.

Or a more portable way would be to completely ignore d_type and call 'stat' for each dirent and check if directory bit is set in st_mode.

AFAIK, this should work on windows (you don't have user/group/other attributes, but you have directory) and other unix like OSes (linux, OSX, ...)




Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/