diff options
Diffstat (limited to 'CPP/7zip/Archive/Zip/ZipItem.cpp')
-rw-r--r-- | CPP/7zip/Archive/Zip/ZipItem.cpp | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/CPP/7zip/Archive/Zip/ZipItem.cpp b/CPP/7zip/Archive/Zip/ZipItem.cpp index f2ccc814..9e1f5e00 100644 --- a/CPP/7zip/Archive/Zip/ZipItem.cpp +++ b/CPP/7zip/Archive/Zip/ZipItem.cpp @@ -2,11 +2,14 @@ #include "StdAfx.h" -#include "ZipHeader.h" -#include "ZipItem.h" -#include "../Common/ItemNameUtils.h" #include "../../../../C/CpuArch.h" +#include "../../../Common/MyLinux.h" + +#include "../Common/ItemNameUtils.h" + +#include "ZipItem.h" + namespace NArchive { namespace NZip { @@ -114,7 +117,7 @@ bool CItem::IsDir() const case NHostOS::kMVS: return false; // change it throw kUnknownAttributes; case NHostOS::kUnix: - return ((highAttrib & NUnixAttrib::kIFMT) == NUnixAttrib::kIFDIR); + return MY_LIN_S_ISDIR(highAttrib); default: return false; } @@ -151,7 +154,7 @@ bool CItem::GetPosixAttrib(UInt32 &attrib) const } attrib = 0; if (IsDir()) - attrib = NUnixAttrib::kIFDIR; + attrib = MY_LIN_S_IFDIR; return false; } |