1/* This file is part of the KDE project
2 Copyright (C) 2007 David Faure <faure@kde.org>
3
4 This library is free software; you can redistribute it and/or
5 modify it under the terms of the GNU Library General Public
6 License as published by the Free Software Foundation; either
7 version 2 of the License, or (at your option) any later version.
8
9 This library is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 Library General Public License for more details.
13
14 You should have received a copy of the GNU Library General Public License
15 along with this library; see the file COPYING.LIB. If not, write to
16 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
17 Boston, MA 02110-1301, USA.
18*/
19
20#ifndef KARCHIVE_EXPORT_H
21#define KARCHIVE_EXPORT_H
22
23#ifdef COMPILE_KARCHIVE_STANDALONE
24
25/* needed for KDE_EXPORT and KDE_IMPORT macros */
26#include <kdemacros.h>
27
28#ifndef KARCHIVE_EXPORT
29# if defined(KDELIBS_STATIC_LIBS)
30 /* No export/import for static libraries */
31# define KARCHIVE_EXPORT
32# elif defined(MAKE_KARCHIVE_LIB)
33 /* We are building this library */
34# define KARCHIVE_EXPORT KDE_EXPORT
35# else
36 /* We are using this library */
37# define KARCHIVE_EXPORT KDE_IMPORT
38# endif
39#endif
40
41#else
42
43/* KDE4 compatibility */
44
45#include <kdecore_export.h>
46#define KARCHIVE_EXPORT KDECORE_EXPORT
47
48#endif
49
50# ifndef KARCHIVE_EXPORT_DEPRECATED
51# define KARCHIVE_EXPORT_DEPRECATED KDE_DEPRECATED KARCHIVE_EXPORT
52# endif
53
54
55#endif
56