diff options
author | Mathias Preiner <mathias.preiner@gmail.com> | 2021-03-16 10:56:01 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-16 10:56:01 -0700 |
commit | d6890791897ddebf1212d3e3147bf7aeb2415b27 (patch) | |
tree | 51c69ba48a7550b6a7660e2488b4b39cbedba539 /src/base/configuration.h | |
parent | 0d3ea6f2dcaf80d386c7765ee8a708c18e3ed574 (diff) |
cmake: Generate cvc4_export.h and set visibility to hidden. (#6139)
The build system (cmake) will automatically generate an export header
cvc4_export.h, which makes sure that the correct export features are
defined depending on the compiler and target platform. The macro CVC4_EXPORT
replaces CVC4_PUBLIC and its usage is reduced by 2/3.
Co-authored-by: Gereon Kremer <nafur42@gmail.com>
Diffstat (limited to 'src/base/configuration.h')
-rw-r--r-- | src/base/configuration.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/base/configuration.h b/src/base/configuration.h index 792694378..aab136374 100644 --- a/src/base/configuration.h +++ b/src/base/configuration.h @@ -23,13 +23,16 @@ #include <string> +#include "cvc4_export.h" + namespace CVC4 { /** * Represents the (static) configuration of CVC4. */ -class CVC4_PUBLIC Configuration { -private: +class CVC4_EXPORT Configuration +{ + private: /** Private default ctor: Disallow construction of this class */ Configuration(); @@ -136,7 +139,7 @@ public: static std::string getCompiler(); static std::string getCompiledDateTime(); -};/* class Configuration */ +}; /* class Configuration */ }/* CVC4 namespace */ |