Go to the documentation of this file.
6 #ifndef CURVES_CONFIG_HH
7 # define CURVES_CONFIG_HH
10 # define CURVES_VERSION_UNKNOWN_TAG 0 // Used to mention that the current version is unknown.
11 # define CURVES_VERSION "0.5.0"
12 # define CURVES_MAJOR_VERSION 0
13 # define CURVES_MINOR_VERSION 5
14 # define CURVES_PATCH_VERSION 0
16 #define CURVES_VERSION_AT_LEAST(major, minor, patch) (CURVES_MAJOR_VERSION>major || (CURVES_MAJOR_VERSION>=major && \
17 (CURVES_MINOR_VERSION>minor || (CURVES_MINOR_VERSION>=minor && \
18 CURVES_PATCH_VERSION>=patch))))
20 #define CURVES_VERSION_AT_MOST(major, minor, patch) (CURVES_MAJOR_VERSION<major || (CURVES_MAJOR_VERSION<=major && \
21 (CURVES_MINOR_VERSION<minor || (CURVES_MINOR_VERSION<=minor && \
22 CURVES_PATCH_VERSION<=patch))))
34 # if defined _WIN32 || defined __CYGWIN__
36 # define CURVES_DLLIMPORT __declspec(dllimport)
37 # define CURVES_DLLEXPORT __declspec(dllexport)
38 # define CURVES_DLLLOCAL
42 # define CURVES_DLLIMPORT __attribute__ ((visibility("default")))
43 # define CURVES_DLLEXPORT __attribute__ ((visibility("default")))
44 # define CURVES_DLLLOCAL __attribute__ ((visibility("hidden")))
47 # define CURVES_DLLIMPORT
48 # define CURVES_DLLEXPORT
49 # define CURVES_DLLLOCAL
50 # endif // __GNUC__ >= 4
51 # endif // defined _WIN32 || defined __CYGWIN__
56 # define CURVES_DLLAPI
61 # ifdef curves_EXPORTS
62 # define CURVES_DLLAPI CURVES_DLLEXPORT
64 # define CURVES_DLLAPI CURVES_DLLIMPORT
65 # endif // CURVES_EXPORTS
66 # define CURVES_LOCAL CURVES_DLLLOCAL
67 # endif // CURVES_STATIC