1 /****************************************************************************************
2  * Copyright (c) 2010-2012 Leo Franchi <lfranchi@kde.org>                               *
3  *                                                                                      *
4  * This program is free software; you can redistribute it and/or modify it under        *
5  * the terms of the GNU General Public License as published by the Free Software        *
6  * Foundation; either version 2 of the License, or (at your option) any later           *
7  * version.                                                                             *
8  *                                                                                      *
9  * This program is distributed in the hope that it will be useful, but WITHOUT ANY      *
10  * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A      *
11  * PARTICULAR PURPOSE. See the GNU General Public License for more details.             *
12  *                                                                                      *
13  * You should have received a copy of the GNU General Public License along with         *
14  * this program.  If not, see <http://www.gnu.org/licenses/>.                           *
15  ****************************************************************************************/
16 
17 #ifndef ECHONEST_EXPORT_H
18 #define ECHONEST_EXPORT_H
19 
20 #if defined _WIN32
21     #if defined ( echonest_EXPORTS ) || defined ( echonest5_EXPORTS )
22         #define ECHONEST_EXPORT __declspec(dllexport)
23     #else
24         #define ECHONEST_EXPORT __declspec(dllimport)
25     #endif
26 #elif __GNUC__ >= 4
27   #define ECHONEST_EXPORT __attribute__ ((visibility("default")))
28 #else
29   #define ECHONEST_EXPORT
30 #endif
31 
32 #endif
33