Go to the documentation of this file.
6 #ifndef SOT_TOOLS_CONFIG_HH
7 # define SOT_TOOLS_CONFIG_HH
10 # define SOT_TOOLS_VERSION_UNKNOWN_TAG 0 // Used to mention that the current version is unknown.
11 # define SOT_TOOLS_VERSION "2.3.5"
12 # define SOT_TOOLS_MAJOR_VERSION 2
13 # define SOT_TOOLS_MINOR_VERSION 3
14 # define SOT_TOOLS_PATCH_VERSION 5
16 #define SOT_TOOLS_VERSION_AT_LEAST(major, minor, patch) (SOT_TOOLS_MAJOR_VERSION>major || (SOT_TOOLS_MAJOR_VERSION>=major && \
17 (SOT_TOOLS_MINOR_VERSION>minor || (SOT_TOOLS_MINOR_VERSION>=minor && \
18 SOT_TOOLS_PATCH_VERSION>=patch))))
20 #define SOT_TOOLS_VERSION_AT_MOST(major, minor, patch) (SOT_TOOLS_MAJOR_VERSION<major || (SOT_TOOLS_MAJOR_VERSION<=major && \
21 (SOT_TOOLS_MINOR_VERSION<minor || (SOT_TOOLS_MINOR_VERSION<=minor && \
22 SOT_TOOLS_PATCH_VERSION<=patch))))
34 # if defined _WIN32 || defined __CYGWIN__
36 # define SOT_TOOLS_DLLIMPORT __declspec(dllimport)
37 # define SOT_TOOLS_DLLEXPORT __declspec(dllexport)
38 # define SOT_TOOLS_DLLLOCAL
42 # define SOT_TOOLS_DLLIMPORT __attribute__ ((visibility("default")))
43 # define SOT_TOOLS_DLLEXPORT __attribute__ ((visibility("default")))
44 # define SOT_TOOLS_DLLLOCAL __attribute__ ((visibility("hidden")))
47 # define SOT_TOOLS_DLLIMPORT
48 # define SOT_TOOLS_DLLEXPORT
49 # define SOT_TOOLS_DLLLOCAL
50 # endif // __GNUC__ >= 4
51 # endif // defined _WIN32 || defined __CYGWIN__
53 # ifdef SOT_TOOLS_STATIC
56 # define SOT_TOOLS_DLLAPI
57 # define SOT_TOOLS_LOCAL
61 # ifdef sot_tools_EXPORTS
62 # define SOT_TOOLS_DLLAPI SOT_TOOLS_DLLEXPORT
64 # define SOT_TOOLS_DLLAPI SOT_TOOLS_DLLIMPORT
65 # endif // SOT_TOOLS_EXPORTS
66 # define SOT_TOOLS_LOCAL SOT_TOOLS_DLLLOCAL
67 # endif // SOT_TOOLS_STATIC