libmirisdr 0.0.20130608
MiriSDR library
mirisdr_export.h
1/*
2 * Copyright (C) 2012 by Hoernchen <la@tfc-server.de>
3 *
4 * This program is free software: you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation, either version 2 of the License, or
7 * (at your option) any later version.
8 *
9 * This program 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
12 * GNU General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public License
15 * along with this program. If not, see <http://www.gnu.org/licenses/>.
16 */
17
18#ifndef __MIRISDR_EXPORT_H
19#define __MIRISDR_EXPORT_H
20
21#if defined __GNUC__
22# if __GNUC__ >= 4
23# define __SDR_EXPORT __attribute__((visibility("default")))
24# define __SDR_IMPORT __attribute__((visibility("default")))
25# else
26# define __SDR_EXPORT
27# define __SDR_IMPORT
28# endif
29#elif _MSC_VER
30# define __SDR_EXPORT __declspec(dllexport)
31# define __SDR_IMPORT __declspec(dllimport)
32#else
33# define __SDR_EXPORT
34# define __SDR_IMPORT
35#endif
36
37#ifndef mirisdr_STATIC
38# ifdef mirisdr_EXPORTS
39# define MIRISDR_API __SDR_EXPORT
40# else
41# define MIRISDR_API __SDR_IMPORT
42# endif
43#else
44#define MIRISDR_API
45#endif
46#endif /* __MIRISDR_EXPORT_H */