File indexing completed on 2025-01-26 04:24:53

0001 #ifndef QUAZIP_GLOBAL_H
0002 #define QUAZIP_GLOBAL_H
0003 
0004 /*
0005 Copyright (C) 2005-2014 Sergey A. Tachenov
0006 
0007 This file is part of QuaZIP.
0008 
0009 QuaZIP is free software: you can redistribute it and/or modify
0010 it under the terms of the GNU Lesser General Public License as published by
0011 the Free Software Foundation, either version 2.1 of the License, or
0012 (at your option) any later version.
0013 
0014 QuaZIP is distributed in the hope that it will be useful,
0015 but WITHOUT ANY WARRANTY; without even the implied warranty of
0016 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
0017 GNU Lesser General Public License for more details.
0018 
0019 You should have received a copy of the GNU Lesser General Public License
0020 along with QuaZIP.  If not, see <http://www.gnu.org/licenses/>.
0021 
0022 See COPYING file for the full LGPL text.
0023 
0024 Original ZIP package is copyrighted by Gilles Vollant and contributors,
0025 see quazip/(un)zip.h files for details. Basically it's the zlib license.
0026 */
0027 
0028 #include <QtCore/qglobal.h>
0029 
0030 /**
0031   This is automatically defined when building a static library, but when
0032   including QuaZip sources directly into a project, QUAZIP_STATIC should
0033   be defined explicitly to avoid possible troubles with unnecessary
0034   importing/exporting.
0035   */
0036 #ifdef QUAZIP_STATIC
0037 #define QUAZIP_EXPORT
0038 #else
0039 /**
0040  * When building a DLL with MSVC, QUAZIP_BUILD must be defined.
0041  * qglobal.h takes care of defining Q_DECL_* correctly for msvc/gcc.
0042  */
0043 #if defined(QUAZIP_BUILD)
0044     #define QUAZIP_EXPORT Q_DECL_EXPORT
0045 #else
0046     #define QUAZIP_EXPORT Q_DECL_IMPORT
0047 #endif
0048 #endif // QUAZIP_STATIC
0049 
0050 #ifdef __GNUC__
0051 #define UNUSED __attribute__((__unused__))
0052 #else
0053 #define UNUSED
0054 #endif
0055 
0056 #define QUAZIP_EXTRA_NTFS_MAGIC 0x000Au
0057 #define QUAZIP_EXTRA_NTFS_TIME_MAGIC 0x0001u
0058 
0059 #endif // QUAZIP_GLOBAL_H