diff options
author | David Boddie <dboddie@trolltech.com> | 2010-02-10 15:51:48 (GMT) |
---|---|---|
committer | David Boddie <dboddie@trolltech.com> | 2010-02-10 15:51:48 (GMT) |
commit | c072fa8fdd0cebcaff9062e07d4623bbd7aded3c (patch) | |
tree | db35223ec643fbc5aeadcfab4112e5686ff44b8f /src/gui/text/qzip.cpp | |
parent | bf54d63fb1b60ad899d0b14889109278bd04fd9d (diff) | |
parent | 9a83bf2676dabdf36f9ca491b480b50d8e7ed93d (diff) | |
download | Qt-c072fa8fdd0cebcaff9062e07d4623bbd7aded3c.zip Qt-c072fa8fdd0cebcaff9062e07d4623bbd7aded3c.tar.gz Qt-c072fa8fdd0cebcaff9062e07d4623bbd7aded3c.tar.bz2 |
Merge branch 'master' of git@scm.dev.nokia.troll.no:qt/oslo-staging-1
Diffstat (limited to 'src/gui/text/qzip.cpp')
-rw-r--r-- | src/gui/text/qzip.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/gui/text/qzip.cpp b/src/gui/text/qzip.cpp index 2fc1940..d30c996 100644 --- a/src/gui/text/qzip.cpp +++ b/src/gui/text/qzip.cpp @@ -54,10 +54,13 @@ #include <zlib.h> #if defined(Q_OS_WIN) -#undef S_IFREG -#define S_IFREG 0100000 +# undef S_IFREG +# define S_IFREG 0100000 +# ifndef S_IFDIR +# define S_IFDIR 0040000 +# endif # ifndef S_ISDIR -# define S_ISDIR(x) ((x) & 0040000) > 0 +# define S_ISDIR(x) ((x) & S_IFDIR) > 0 # endif # ifndef S_ISREG # define S_ISREG(x) ((x) & 0170000) == S_IFREG |