1 /**************************************************************************************** 2 * Copyright (c) 2007 David Faure <faure@kde.org> * 3 * Copyright (c) 2010 Patrick von Reth <patrick.vonreth@gmail.com> * 4 * Copyright (c) 2013 Matěj Laitl <matej@laitl.cz> * 5 * * 6 * This program is free software; you can redistribute it and/or modify it under * 7 * the terms of the GNU General Public License as published by the Free Software * 8 * Foundation; either version 2 of the License, or (at your option) any later * 9 * version. * 10 * * 11 * This program is distributed in the hope that it will be useful, but WITHOUT ANY * 12 * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A * 13 * PARTICULAR PURPOSE. See the GNU General Public License for more details. * 14 * * 15 * You should have received a copy of the GNU General Public License along with * 16 * this program. If not, see <http://www.gnu.org/licenses/>. * 17 ****************************************************************************************/ 18 19 #ifndef AMAROK_EXPORT_H 20 #define AMAROK_EXPORT_H 21 22 /* needed for Q_DECL_EXPORT and Q_DECL_IMPORT macros */ 23 #include <QtGlobal> 24 25 #ifndef AMAROK_EXPORT 26 # ifdef MAKE_AMAROKLIB_LIB 27 /* We are building this library */ 28 # define AMAROK_EXPORT Q_DECL_EXPORT 29 # else 30 /* We are using this library */ 31 # define AMAROK_EXPORT Q_DECL_IMPORT 32 # endif // MAKE_AMAROKLIB_LIB 33 #endif // AMAROK_EXPORT 34 35 #endif // AMAROK_EXPORT_H 36