QuaZip quazip-1-4
quazip_global.h
1#ifndef QUAZIP_GLOBAL_H
2#define QUAZIP_GLOBAL_H
3
4/*
5Copyright (C) 2005-2014 Sergey A. Tachenov
6
7This file is part of QuaZip.
8
9QuaZip is free software: you can redistribute it and/or modify
10it under the terms of the GNU Lesser General Public License as published by
11the Free Software Foundation, either version 2.1 of the License, or
12(at your option) any later version.
13
14QuaZip is distributed in the hope that it will be useful,
15but WITHOUT ANY WARRANTY; without even the implied warranty of
16MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17GNU Lesser General Public License for more details.
18
19You should have received a copy of the GNU Lesser General Public License
20along with QuaZip. If not, see <http://www.gnu.org/licenses/>.
21
22See COPYING file for the full LGPL text.
23
24Original ZIP package is copyrighted by Gilles Vollant and contributors,
25see quazip/(un)zip.h files for details. Basically it's the zlib license.
26*/
27
28#include <QtCore/QtGlobal>
29
36#ifdef QUAZIP_STATIC
37#define QUAZIP_EXPORT
38#else
43#if defined(QUAZIP_BUILD)
44 #define QUAZIP_EXPORT Q_DECL_EXPORT
45#else
46 #define QUAZIP_EXPORT Q_DECL_IMPORT
47#endif
48#endif // QUAZIP_STATIC
49
50#ifdef __GNUC__
51#define QUAZIP_UNUSED __attribute__((__unused__))
52#else
53#define QUAZIP_UNUSED
54#endif
55
56#define QUAZIP_EXTRA_NTFS_MAGIC 0x000Au
57#define QUAZIP_EXTRA_NTFS_TIME_MAGIC 0x0001u
58#define QUAZIP_EXTRA_EXT_TIME_MAGIC 0x5455u
59#define QUAZIP_EXTRA_EXT_MOD_TIME_FLAG 1
60#define QUAZIP_EXTRA_EXT_AC_TIME_FLAG 2
61#define QUAZIP_EXTRA_EXT_CR_TIME_FLAG 4
62
63#endif // QUAZIP_GLOBAL_H