misc/quazip/quazip_global.h
author unc0rr
Sun, 04 Sep 2011 10:58:42 +0400
changeset 5752 ea95ee97c805
child 5785 45b85a04bb1e
permissions -rw-r--r--
Add QuaZIP library to build system
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
5752
ea95ee97c805 Add QuaZIP library to build system
unc0rr
parents:
diff changeset
     1
/**
ea95ee97c805 Add QuaZIP library to build system
unc0rr
parents:
diff changeset
     2
Copyright (C) 2005-2011 Sergey A. Tachenov
ea95ee97c805 Add QuaZIP library to build system
unc0rr
parents:
diff changeset
     3
ea95ee97c805 Add QuaZIP library to build system
unc0rr
parents:
diff changeset
     4
This program is free software; you can redistribute it and/or modify it
ea95ee97c805 Add QuaZIP library to build system
unc0rr
parents:
diff changeset
     5
under the terms of the GNU Lesser General Public License as published by
ea95ee97c805 Add QuaZIP library to build system
unc0rr
parents:
diff changeset
     6
the Free Software Foundation; either version 2 of the License, or (at
ea95ee97c805 Add QuaZIP library to build system
unc0rr
parents:
diff changeset
     7
your option) any later version.
ea95ee97c805 Add QuaZIP library to build system
unc0rr
parents:
diff changeset
     8
ea95ee97c805 Add QuaZIP library to build system
unc0rr
parents:
diff changeset
     9
This program is distributed in the hope that it will be useful, but
ea95ee97c805 Add QuaZIP library to build system
unc0rr
parents:
diff changeset
    10
WITHOUT ANY WARRANTY; without even the implied warranty of
ea95ee97c805 Add QuaZIP library to build system
unc0rr
parents:
diff changeset
    11
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser
ea95ee97c805 Add QuaZIP library to build system
unc0rr
parents:
diff changeset
    12
General Public License for more details.
ea95ee97c805 Add QuaZIP library to build system
unc0rr
parents:
diff changeset
    13
ea95ee97c805 Add QuaZIP library to build system
unc0rr
parents:
diff changeset
    14
You should have received a copy of the GNU Lesser General Public License
ea95ee97c805 Add QuaZIP library to build system
unc0rr
parents:
diff changeset
    15
along with this program; if not, write to the Free Software Foundation,
ea95ee97c805 Add QuaZIP library to build system
unc0rr
parents:
diff changeset
    16
Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
ea95ee97c805 Add QuaZIP library to build system
unc0rr
parents:
diff changeset
    17
ea95ee97c805 Add QuaZIP library to build system
unc0rr
parents:
diff changeset
    18
See COPYING file for the full LGPL text.
ea95ee97c805 Add QuaZIP library to build system
unc0rr
parents:
diff changeset
    19
ea95ee97c805 Add QuaZIP library to build system
unc0rr
parents:
diff changeset
    20
Original ZIP package is copyrighted by Gilles Vollant, see
ea95ee97c805 Add QuaZIP library to build system
unc0rr
parents:
diff changeset
    21
quazip/(un)zip.h files for details, basically it's zlib license.
ea95ee97c805 Add QuaZIP library to build system
unc0rr
parents:
diff changeset
    22
 */
ea95ee97c805 Add QuaZIP library to build system
unc0rr
parents:
diff changeset
    23
ea95ee97c805 Add QuaZIP library to build system
unc0rr
parents:
diff changeset
    24
#ifndef QUAZIP_GLOBAL_H
ea95ee97c805 Add QuaZIP library to build system
unc0rr
parents:
diff changeset
    25
#define QUAZIP_GLOBAL_H
ea95ee97c805 Add QuaZIP library to build system
unc0rr
parents:
diff changeset
    26
ea95ee97c805 Add QuaZIP library to build system
unc0rr
parents:
diff changeset
    27
#include <QtCore/qglobal.h>
ea95ee97c805 Add QuaZIP library to build system
unc0rr
parents:
diff changeset
    28
/**
ea95ee97c805 Add QuaZIP library to build system
unc0rr
parents:
diff changeset
    29
 * When building the library with MSVC, QUAZIP_BUILD must be defined.
ea95ee97c805 Add QuaZIP library to build system
unc0rr
parents:
diff changeset
    30
 * qglobal.h takes care of defining Q_DECL_* correctly for msvc/gcc.
ea95ee97c805 Add QuaZIP library to build system
unc0rr
parents:
diff changeset
    31
 */
ea95ee97c805 Add QuaZIP library to build system
unc0rr
parents:
diff changeset
    32
#if defined(QUAZIP_BUILD)
ea95ee97c805 Add QuaZIP library to build system
unc0rr
parents:
diff changeset
    33
	#define QUAZIP_EXPORT Q_DECL_EXPORT
ea95ee97c805 Add QuaZIP library to build system
unc0rr
parents:
diff changeset
    34
#else
ea95ee97c805 Add QuaZIP library to build system
unc0rr
parents:
diff changeset
    35
	#define QUAZIP_EXPORT Q_DECL_IMPORT
ea95ee97c805 Add QuaZIP library to build system
unc0rr
parents:
diff changeset
    36
#endif
ea95ee97c805 Add QuaZIP library to build system
unc0rr
parents:
diff changeset
    37
ea95ee97c805 Add QuaZIP library to build system
unc0rr
parents:
diff changeset
    38
#ifdef __GNUC__
ea95ee97c805 Add QuaZIP library to build system
unc0rr
parents:
diff changeset
    39
#define UNUSED __attribute__((__unused__))
ea95ee97c805 Add QuaZIP library to build system
unc0rr
parents:
diff changeset
    40
#else
ea95ee97c805 Add QuaZIP library to build system
unc0rr
parents:
diff changeset
    41
#define UNUSED
ea95ee97c805 Add QuaZIP library to build system
unc0rr
parents:
diff changeset
    42
#endif
ea95ee97c805 Add QuaZIP library to build system
unc0rr
parents:
diff changeset
    43
ea95ee97c805 Add QuaZIP library to build system
unc0rr
parents:
diff changeset
    44
#endif // QUAZIP_GLOBAL_H