libosmscout 1.1.1
Loading...
Searching...
No Matches
MapGDIImportExport.h
Go to the documentation of this file.
1#ifndef OSMSCOUT_MAP_GDI_PRIVATE_IMPORT_EXPORT_H
2#define OSMSCOUT_MAP_GDI_PRIVATE_IMPORT_EXPORT_H
3
4/*
5 This source is part of the libosmscout-map-gdi library
6 Copyright (C) 2011 Tim Teulings
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
21*/
22
23// Shared library support
24#if defined _WIN32 || defined __CYGWIN__
25# define OSMSCOUT_IMPORT __declspec(dllimport)
26# define OSMSCOUT_EXPORT __declspec(dllexport)
27# define OSMSCOUT_LOCAL
28#else
29# if __GNUC__ >= 4
30# define OSMSCOUT_IMPORT __attribute__ ((visibility ("default")))
31# define OSMSCOUT_EXPORT __attribute__ ((visibility ("default")))
32# define OSMSCOUT_LOCAL __attribute__ ((visibility ("hidden")))
33# else
34# define OSMSCOUT_IMPORT
35# define OSMSCOUT_EXPORT
36# define OSMSCOUT_LOCAL
37# endif
38#endif
39#ifndef OSMSCOUT_STATIC
40# ifdef OSMScoutMapGDI_EXPORTS
41# define OSMSCOUT_MAP_GDI_API OSMSCOUT_EXPORT
42# else
43# define OSMSCOUT_MAP_GDI_API OSMSCOUT_IMPORT
44# endif
45# define OSMSCOUT_MAP_GDI_DLLLOCAL OSMSCOUT_LOCAL
46# else
47# define OSMSCOUT_MAP_GDI_API
48# define OSMSCOUT_MAP_GDI_DLLLOCAL
49#endif
50
51// Throwable classes must always be visible on GCC in all binaries
52#if defined(_WIN32)
53 #define OSMSCOUT_MAP_GDI_EXCEPTIONAPI(api) api
54#elif defined(OSMScoutMapGDI_EXPORTS)
55 #define OSMSCOUT_MAP_GDI_EXCEPTIONAPI(api) OSMSCOUT_EXPORT
56#else
57 #define OSMSCOUT_MAP_GDI_EXCEPTIONAPI(api)
58#endif
59
60#if defined(_MSC_VER)
61 #define OSMSCOUT_MAP_GDI_INSTANTIATE_TEMPLATES
62#endif
63#endif
64