GeoDesk for C++
Fast and storage-efficient spatial database engine for OpenStreetMap features
Loading...
Searching...
No Matches
export.h
Go to the documentation of this file.
1// Copyright (c) 2024 Clarisma / GeoDesk contributors
2// SPDX-License-Identifier: LGPL-3.0-only
3
4#pragma once
5
6// Export.h
7#pragma once
8
9#if defined(_WIN32) || defined(__CYGWIN__)
10 #ifdef GEODESK_SHARED
11 #ifdef GEODESK_EXPORTS
12 #ifdef __GNUC__
13 #define GEODESK_API __attribute__((dllexport))
14 #else
15 #define GEODESK_API __declspec(dllexport)
16 #endif
17 #else
18 #ifdef __GNUC__
19 #define GEODESK_API __attribute__((dllimport))
20 #else
21 #define GEODESK_API __declspec(dllimport)
22 #endif
23 #endif
24 #else
25 #define GEODESK_API
26 #endif
27#else
28 #if __GNUC__ >= 4
29 #define GEODESK_API __attribute__((visibility("default")))
30 #else
31 #define GEODESK_API
32 #endif
33#endif