File indexing completed on 2024-04-21 15:38:07

0001 /* This file is part of the KDE project
0002  *
0003  * Copyright (C) 2006 Koos Vriezen <koos.vriezen@xs4all.nl>
0004  *
0005  * This library is free software; you can redistribute it and/or
0006  * modify it under the terms of the GNU Library General Public
0007  * License as published by the Free Software Foundation; either
0008  * version 2 of the License, or (at your option) any later version.
0009  *
0010  * This library is distributed in the hope that it will be useful,
0011  * but WITHOUT ANY WARRANTY; without even the implied warranty of
0012  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
0013  * Library General Public License for more details.
0014  *
0015  * You should have received a copy of the GNU Library General Public License
0016  * along with this library; see the file COPYING.LIB.  If not, write to
0017  * the Free Software Foundation, Inc., 51 Franklin Steet, Fifth Floor,
0018  * Boston, MA 02110-1301, USA.
0019  *
0020  * until boost gets common, a more or less compatable one ..
0021  */
0022 
0023 #ifndef _KMPLAYER_DEF_H_
0024 #define _KMPLAYER_DEF_H_
0025 
0026 #include "config-kmplayer.h"
0027 #ifndef ASSERT
0028 #define ASSERT Q_ASSERT
0029 #endif
0030 
0031 #include <kdemacros.h>
0032 
0033 #undef KDE_NO_CDTOR_EXPORT
0034 #undef KDE_NO_EXPORT
0035 #ifndef KDE_EXPORT
0036   #define KDE_EXPORT
0037 #endif
0038 #if __GNUC__ - 0 > 3 && __GNUC_MINOR__ - 0 > 1
0039 # define KMPLAYER_NO_EXPORT __attribute__ ((visibility("hidden")))
0040 # define KMPLAYER_EXPORT __attribute__ ((visibility("default")))
0041 # define KMPLAYER_NO_MBR_EXPORT __attribute__ ((visibility("hidden")))
0042 # define KDE_NO_CDTOR_EXPORT
0043 # define KDE_NO_EXPORT
0044 #elif __GNUC__ - 0 > 3 || (__GNUC__ - 0 == 3 && __GNUC_MINOR__ - 0 > 3)
0045   #if __GNUC__ - 0 > 3
0046     #define KMPLAYER_NO_EXPORT __attribute__ ((visibility("hidden")))
0047   #else
0048     #define KMPLAYER_NO_EXPORT
0049   #endif
0050   #define KDE_NO_CDTOR_EXPORT __attribute__ ((visibility("hidden")))
0051   #define KDE_NO_EXPORT __attribute__ ((visibility("hidden")))
0052   #define KMPLAYER_EXPORT __attribute__ ((visibility("default")))
0053   #define KMPLAYER_NO_MBR_EXPORT
0054 #elif __GNUC__ - 0 > 3 || (__GNUC__ - 0 == 3 && __GNUC_MINOR__ - 0 > 2)
0055   #define KDE_NO_CDTOR_EXPORT
0056   #define KDE_NO_EXPORT __attribute__ ((visibility("hidden")))
0057   #define KMPLAYER_EXPORT
0058   #define KMPLAYER_NO_EXPORT
0059   #define KMPLAYER_NO_MBR_EXPORT
0060 #else
0061   #define KDE_NO_CDTOR_EXPORT
0062   #define KDE_NO_EXPORT
0063   #define KMPLAYER_EXPORT
0064   #define KMPLAYER_NO_EXPORT
0065   #define KMPLAYER_NO_MBR_EXPORT
0066 #endif
0067 
0068 #define KURL KUrl
0069 
0070 #endif //_KMPLAYER_DEF_H_