diff options
author | Dominik Riebeling <Dominik.Riebeling@gmail.com> | 2021-12-15 21:04:28 +0100 |
---|---|---|
committer | Dominik Riebeling <Dominik.Riebeling@gmail.com> | 2021-12-24 18:05:53 +0100 |
commit | c876d3bbefe0dc00c27ca0c12d29da5874946962 (patch) | |
tree | 69f468a185a369b01998314bc3ecc19b70f4fcaa /utils/rbutilqt/quazip/quazip_global.h | |
parent | 6c6f0757d7a902feb293be165d1490c42bc8e7ad (diff) | |
download | rockbox-c876d3bbefe0dc00c27ca0c12d29da5874946962.tar.gz rockbox-c876d3bbefe0dc00c27ca0c12d29da5874946962.zip |
rbutil: Merge rbutil with utils folder.
rbutil uses several components from the utils folder, and can be
considered part of utils too. Having it in a separate folder is an
arbitrary split that doesn't help anymore these days, so merge them.
This also allows other utils to easily use libtools.make without the
need to navigate to a different folder.
Change-Id: I3fc2f4de19e3e776553efb5dea5f779dfec0dc21
Diffstat (limited to 'utils/rbutilqt/quazip/quazip_global.h')
-rw-r--r-- | utils/rbutilqt/quazip/quazip_global.h | 63 |
1 files changed, 63 insertions, 0 deletions
diff --git a/utils/rbutilqt/quazip/quazip_global.h b/utils/rbutilqt/quazip/quazip_global.h new file mode 100644 index 0000000000..de581bd7c4 --- /dev/null +++ b/utils/rbutilqt/quazip/quazip_global.h | |||
@@ -0,0 +1,63 @@ | |||
1 | #ifndef QUAZIP_GLOBAL_H | ||
2 | #define QUAZIP_GLOBAL_H | ||
3 | |||
4 | /* | ||
5 | Copyright (C) 2005-2014 Sergey A. Tachenov | ||
6 | |||
7 | This file is part of QuaZIP. | ||
8 | |||
9 | QuaZIP is free software: you can redistribute it and/or modify | ||
10 | it under the terms of the GNU Lesser General Public License as published by | ||
11 | the Free Software Foundation, either version 2.1 of the License, or | ||
12 | (at your option) any later version. | ||
13 | |||
14 | QuaZIP is distributed in the hope that it will be useful, | ||
15 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
17 | GNU Lesser General Public License for more details. | ||
18 | |||
19 | You should have received a copy of the GNU Lesser General Public License | ||
20 | along with QuaZIP. If not, see <http://www.gnu.org/licenses/>. | ||
21 | |||
22 | See COPYING file for the full LGPL text. | ||
23 | |||
24 | Original ZIP package is copyrighted by Gilles Vollant and contributors, | ||
25 | see quazip/(un)zip.h files for details. Basically it's the zlib license. | ||
26 | */ | ||
27 | |||
28 | #include <QtCore/qglobal.h> | ||
29 | |||
30 | /** | ||
31 | This is automatically defined when building a static library, but when | ||
32 | including QuaZip sources directly into a project, QUAZIP_STATIC should | ||
33 | be defined explicitly to avoid possible troubles with unnecessary | ||
34 | importing/exporting. | ||
35 | */ | ||
36 | #ifdef QUAZIP_STATIC | ||
37 | #define QUAZIP_EXPORT | ||
38 | #else | ||
39 | /** | ||
40 | * When building a DLL with MSVC, QUAZIP_BUILD must be defined. | ||
41 | * qglobal.h takes care of defining Q_DECL_* correctly for msvc/gcc. | ||
42 | */ | ||
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 | ||