equal
deleted
inserted
replaced
1 /**************************************************************************** |
1 /**************************************************************************** |
2 ** |
2 ** |
3 ** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies). |
3 ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). |
4 ** All rights reserved. |
4 ** All rights reserved. |
5 ** Contact: Nokia Corporation (qt-info@nokia.com) |
5 ** Contact: Nokia Corporation (qt-info@nokia.com) |
6 ** |
6 ** |
7 ** This file is part of the QtGui module of the Qt Toolkit. |
7 ** This file is part of the QtGui module of the Qt Toolkit. |
8 ** |
8 ** |
52 #include <qdir.h> |
52 #include <qdir.h> |
53 |
53 |
54 #include <zlib.h> |
54 #include <zlib.h> |
55 |
55 |
56 #if defined(Q_OS_WIN) |
56 #if defined(Q_OS_WIN) |
57 #undef S_IFREG |
57 # undef S_IFREG |
58 #define S_IFREG 0100000 |
58 # define S_IFREG 0100000 |
|
59 # ifndef S_IFDIR |
|
60 # define S_IFDIR 0040000 |
|
61 # endif |
59 # ifndef S_ISDIR |
62 # ifndef S_ISDIR |
60 # define S_ISDIR(x) ((x) & 0040000) > 0 |
63 # define S_ISDIR(x) ((x) & S_IFDIR) > 0 |
61 # endif |
64 # endif |
62 # ifndef S_ISREG |
65 # ifndef S_ISREG |
63 # define S_ISREG(x) ((x) & 0170000) == S_IFREG |
66 # define S_ISREG(x) ((x) & 0170000) == S_IFREG |
64 # endif |
67 # endif |
65 # define S_IFLNK 020000 |
68 # define S_IFLNK 020000 |