radarlib 1.4.6
defs.h
Go to the documentation of this file.
1/*
2 * Radar Library
3 *
4 * Copyright (C) 2009-2010 ARPA-SIM <urpsim@smr.arpa.emr.it>
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
10 *
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License along
17 * with this program; if not, write to the Free Software Foundation, Inc.,
18 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
19 *
20 * Author: Guido Billi <guidobilli@gmail.com>
21 */
22
27#ifndef __RADAR_DEFS_H__
28#define __RADAR_DEFS_H__
29
30/*===========================================================================*/
31/* MACROS USED BY THE LIBRARY TO DECLARE SHARED/EXPORTABLE SYMBOLS */
32/*===========================================================================*/
33
34/* disable Visual C++ warnings */
35#ifdef _MSC_VER
36#ifndef _CRT_SECURE_NO_DEPRECATE
37#define _CRT_SECURE_NO_DEPRECATE
38#endif
39#endif
40
41/* handle different library compilations */
42#ifdef _MSC_VER
43
44 #if defined(__BUILDRADARLIB__)
45 #define RADAR_API __declspec(dllexport)
46 #define RADAR_APIVAR extern __declspec(dllexport)
47 #else
48 #define RADAR_API __declspec(dllimport)
49 #define RADAR_APIVAR extern __declspec(dllimport)
50 #endif
51
52#else
53
54 #define RADAR_API
55 #define RADAR_APIVAR extern
56
57#endif
58
59/*===========================================================================*/
60
61#endif
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84