KDECore
karchive_export.h
Go to the documentation of this file.
00001 /* This file is part of the KDE project 00002 Copyright (C) 2007 David Faure <faure@kde.org> 00003 00004 This library is free software; you can redistribute it and/or 00005 modify it under the terms of the GNU Library General Public 00006 License as published by the Free Software Foundation; either 00007 version 2 of the License, or (at your option) any later version. 00008 00009 This library is distributed in the hope that it will be useful, 00010 but WITHOUT ANY WARRANTY; without even the implied warranty of 00011 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00012 Library General Public License for more details. 00013 00014 You should have received a copy of the GNU Library General Public License 00015 along with this library; see the file COPYING.LIB. If not, write to 00016 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 00017 Boston, MA 02110-1301, USA. 00018 */ 00019 00020 #ifndef KARCHIVE_EXPORT_H 00021 #define KARCHIVE_EXPORT_H 00022 00023 #ifdef COMPILE_KARCHIVE_STANDALONE 00024 00025 /* needed for KDE_EXPORT and KDE_IMPORT macros */ 00026 #include <kdemacros.h> 00027 00028 #ifndef KARCHIVE_EXPORT 00029 # if defined(KDELIBS_STATIC_LIBS) 00030 /* No export/import for static libraries */ 00031 # define KARCHIVE_EXPORT 00032 # elif defined(MAKE_KARCHIVE_LIB) 00033 /* We are building this library */ 00034 # define KARCHIVE_EXPORT KDE_EXPORT 00035 # else 00036 /* We are using this library */ 00037 # define KARCHIVE_EXPORT KDE_IMPORT 00038 # endif 00039 #endif 00040 00041 #else 00042 00043 /* KDE4 compatibility */ 00044 00045 #include <kdecore_export.h> 00046 #define KARCHIVE_EXPORT KDECORE_EXPORT 00047 00048 #endif 00049 00050 # ifndef KARCHIVE_EXPORT_DEPRECATED 00051 # define KARCHIVE_EXPORT_DEPRECATED KDE_DEPRECATED KARCHIVE_EXPORT 00052 # endif 00053 00054 00055 #endif
KDE 4.7 API Reference