wxStat call preliminary fix
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30587 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -200,7 +200,13 @@ void wxFileData::ReadData()
|
||||
lstat( m_filePath.fn_str(), &buff );
|
||||
m_type |= S_ISLNK( buff.st_mode ) != 0 ? is_link : 0;
|
||||
#else // no lstat()
|
||||
// only translate to file charset if we don't go by our
|
||||
// wxStat implementation
|
||||
#ifndef wxNEED_WX_UNISTD_H
|
||||
wxStat( m_filePath.fn_str() , &buff );
|
||||
#else
|
||||
wxStat( m_filePath, &buff );
|
||||
#endif
|
||||
#endif
|
||||
|
||||
m_type |= (buff.st_mode & S_IFDIR) != 0 ? is_dir : 0;
|
||||
|
Reference in New Issue
Block a user