sot-talos-balance  1.6.0
config.hh
Go to the documentation of this file.
1 // Copyright (C) 2008-2018 LAAS-CNRS, JRL AIST-CNRS, INRIA.
2 //
3 // Redistribution and use in source and binary forms, with or without modification,
4 // are permitted provided that the following conditions are met:
5 //
6 // 1. Redistributions of source code must retain the above copyright notice,
7 // this list of conditions and the following disclaimer.
8 //
9 // 2. Redistributions in binary form must reproduce the above copyright notice,
10 // this list of conditions and the following disclaimer in the documentation
11 // and/or other materials provided with the distribution.
12 //
13 // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
14 // AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
15 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
16 // ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
17 // LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
18 // CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
19 // SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
20 // INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
21 // CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
22 // ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
23 // POSSIBILITY OF SUCH DAMAGE.
24 
25 #ifndef SOT_TALOS_BALANCE_CONFIG_HH
26 # define SOT_TALOS_BALANCE_CONFIG_HH
27 
28 // Package version (header).
29 # define SOT_TALOS_BALANCE_VERSION "1.6.0"
30 # define SOT_TALOS_BALANCE_MAJOR_VERSION 1
31 # define SOT_TALOS_BALANCE_MINOR_VERSION 6
32 # define SOT_TALOS_BALANCE_PATCH_VERSION 0
33 
34 // Handle portable symbol export.
35 // Defining manually which symbol should be exported is required
36 // under Windows whether MinGW or MSVC is used.
37 //
38 // The headers then have to be able to work in two different modes:
39 // - dllexport when one is building the library,
40 // - dllimport for clients using the library.
41 //
42 // On Linux, set the visibility accordingly. If C++ symbol visibility
43 // is handled by the compiler, see: http://gcc.gnu.org/wiki/Visibility
44 # if defined _WIN32 || defined __CYGWIN__
45 // On Microsoft Windows, use dllimport and dllexport to tag symbols.
46 # define SOT_TALOS_BALANCE_DLLIMPORT __declspec(dllimport)
47 # define SOT_TALOS_BALANCE_DLLEXPORT __declspec(dllexport)
48 # define SOT_TALOS_BALANCE_DLLLOCAL
49 # else
50 // On Linux, for GCC >= 4, tag symbols using GCC extension.
51 # if __GNUC__ >= 4
52 # define SOT_TALOS_BALANCE_DLLIMPORT __attribute__ ((visibility("default")))
53 # define SOT_TALOS_BALANCE_DLLEXPORT __attribute__ ((visibility("default")))
54 # define SOT_TALOS_BALANCE_DLLLOCAL __attribute__ ((visibility("hidden")))
55 # else
56 // Otherwise (GCC < 4 or another compiler is used), export everything.
57 # define SOT_TALOS_BALANCE_DLLIMPORT
58 # define SOT_TALOS_BALANCE_DLLEXPORT
59 # define SOT_TALOS_BALANCE_DLLLOCAL
60 # endif // __GNUC__ >= 4
61 # endif // defined _WIN32 || defined __CYGWIN__
62 
63 # ifdef SOT_TALOS_BALANCE_STATIC
64 // If one is using the library statically, get rid of
65 // extra information.
66 # define SOT_TALOS_BALANCE_DLLAPI
67 # define SOT_TALOS_BALANCE_LOCAL
68 # else
69 // Depending on whether one is building or using the
70 // library define DLLAPI to import or export.
71 # ifdef sot_talos_balance_EXPORTS
72 # define SOT_TALOS_BALANCE_DLLAPI SOT_TALOS_BALANCE_DLLEXPORT
73 # else
74 # define SOT_TALOS_BALANCE_DLLAPI SOT_TALOS_BALANCE_DLLIMPORT
75 # endif // SOT_TALOS_BALANCE_EXPORTS
76 # define SOT_TALOS_BALANCE_LOCAL SOT_TALOS_BALANCE_DLLLOCAL
77 # endif // SOT_TALOS_BALANCE_STATIC
78 #endif