Main Page
Modules
Namespaces
Classes
Files
File List
File Members
include
ApproxMVBB
Common
Platform.hpp
Go to the documentation of this file.
1
// ========================================================================================
2
// ApproxMVBB
3
// Copyright (C) 2014 by Gabriel Nützi <nuetzig (at) imes (d0t) mavt (d0t) ethz (døt) ch>
4
//
5
// This Source Code Form is subject to the terms of the Mozilla Public
6
// License, v. 2.0. If a copy of the MPL was not distributed with this
7
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
8
// ========================================================================================
9
10
#ifndef ApproxMVBB_Common_Platform_hpp
11
#define ApproxMVBB_Common_Platform_hpp
12
13
#include "
ApproxMVBB/Config/Config.hpp
"
14
15
#ifdef __CYGWIN__
16
#include "
ApproxMVBB/Common/CygwinPatch.hpp
"
17
#endif
18
19
namespace
ApproxMVBB
{
20
21
#if (defined _WIN32) || (defined __CYGWIN__) || (defined WIN32)
22
23
// This macro is given to the compiler when building the library!
24
#ifdef ApproxMVBB_BUILD_LIBRARY
25
26
#pragma message(" Platform.hpp: Building library ...")
27
28
#ifdef __GNUC__
29
#define APPROXMVBB_EXPORT __attribute__ ((dllexport))
30
#else
31
#define APPROXMVBB_EXPORT __declspec(dllexport) // Note: actually gcc seems to also supports this syntax.
32
#endif
33
34
35
36
#else
37
38
#ifdef __GNUC__
39
#define APPROXMVBB_EXPORT __attribute__ ((dllimport))
40
#else
41
#define APPROXMVBB_EXPORT __declspec(dllimport) // Note: actually gcc seems to also supports this syntax.
42
#endif
43
44
#endif
45
46
#else
47
48
#ifdef ApproxMVBB_BUILD_LIBRARY
49
50
#pragma message(" Platform.hpp: Building library ...")
51
52
#if __GNUC__ >= 4 || __clang__
53
#define APPROXMVBB_EXPORT __attribute__ ((visibility ("default")))
54
#else
55
#define APPROXMVBB_EXPORT
56
#warning "Unknown compiler: Exporting everything into library!"
57
#endif
58
59
#else
60
#define APPROXMVBB_EXPORT
61
#endif
62
63
#endif
64
65
}
66
67
#endif
ApproxMVBB
These are some container definitions.
Definition:
EstimateDiameter.hpp:17
CygwinPatch.hpp
Config.hpp
asr_approx_mvbb
Author(s): Gassner Nikolai
autogenerated on Mon Jun 10 2019 12:38:08