Fix compilation issue, also get rid of annoying "_MSC_VER not defined"
preprocessor ambiguity for MinGW
This commit is contained in:
parent
dd62f5b7b8
commit
0020fff749
@ -46,7 +46,7 @@ struct direntry {
|
||||
mode_t type;
|
||||
char *relname;
|
||||
char *path;
|
||||
#if (defined(WIN32) || defined(WIN64)) && (_MSC_VER >= 1500)
|
||||
#if (defined(WIN32) || defined(WIN64)) && !defined(__MINGW32__) && (_MSC_VER >= 1500)
|
||||
struct _stat64 s;
|
||||
#elif defined(__MINGW32__)
|
||||
struct _stati64 s;
|
||||
|
@ -328,16 +328,16 @@ void fsmenu_read_system(struct FSMenu *fsmenu, int read_bookmarks)
|
||||
tmps[2] = '\\';
|
||||
tmps[3] = 0;
|
||||
|
||||
fsmenu_insert_entry(fsmenu, FS_CATEGORY_SYSTEM, tmps, 1, 0);
|
||||
fsmenu_insert_entry(fsmenu, FS_CATEGORY_SYSTEM, tmps, FS_INSERT_SORTED);
|
||||
}
|
||||
}
|
||||
|
||||
/* Adding Desktop and My Documents */
|
||||
if (read_bookmarks) {
|
||||
SHGetSpecialFolderPath(0, line, CSIDL_PERSONAL, 0);
|
||||
fsmenu_insert_entry(fsmenu, FS_CATEGORY_BOOKMARKS, line, 1, 0);
|
||||
fsmenu_insert_entry(fsmenu, FS_CATEGORY_BOOKMARKS, line, FS_INSERT_SORTED);
|
||||
SHGetSpecialFolderPath(0, line, CSIDL_DESKTOPDIRECTORY, 0);
|
||||
fsmenu_insert_entry(fsmenu, FS_CATEGORY_BOOKMARKS, line, 1, 0);
|
||||
fsmenu_insert_entry(fsmenu, FS_CATEGORY_BOOKMARKS, line, FS_INSERT_SORTED);
|
||||
}
|
||||
}
|
||||
#else
|
||||
|
Loading…
Reference in New Issue
Block a user