mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-23 08:31:43 +02:00
gcc/clang (-fvisibility=hidden): corrections to compile and work properly (#4394)
* fix(ActiveRecord): missing ActiveRecordLib_API definitions for clang/gcc. * fix(FPEnvironment): export FPEnvironmentImpl classes (#4393, #3331) * fix(Crypto): export *Impl classes used from inlines (#4393, #3331) * fix(Dynamic): explicitly instantiate and export Dynamic::Struct for string and int (-fvisibility=hidden) (#4393, #3331) * fix(JSON): explicitly instantiate and export SharedPtr for JSON::Array and JSON::Object (-fvisibility=hidden) (#4393, #3331) * enh(CMake): Set symbol visibility to hidden (#4393, #3331) * enh(configure): user c++17 standard for iphone, Darwin and ARM-Linux. * fix(UTF): explicitly instantiate and export 16 and 32-bit strings (-fvisibility=hidden) (#4393, #3331) * fix(RecordSet): make Extraction.h internal and instantiate RecordsSet::column template functions only for supported types. (-fvisibility=hidden) (#4393, #3331) * fix(UTF): fix explicitly instantiation on Windows (-fvisibility=hidden) (#4393, #3331) * enh(CMake): Add github jobs for macOS with visibility set to hidden (#4393, #3331) * fix(CppParser): Add missing declarations for CppParser_API (#4393, #3331) * enh(CMake): Enable more options in github jobs for macOS with visibility set to hidden (#4393, #3331) * fix(MongoDB): Add missing MongoDB_API (#4393, #3331)
This commit is contained in:
@@ -20,6 +20,15 @@
|
||||
|
||||
using Poco::Dynamic::Var;
|
||||
|
||||
// Explicitly instatiated shared pointer in JSON library is required to
|
||||
// have known instance of the pointer to be used with VarHolder when
|
||||
// compiling with -fvisibility=hidden
|
||||
#if defined(POCO_OS_FAMILY_WINDOWS)
|
||||
template class JSON_API Poco::SharedPtr<Poco::JSON::Array>;
|
||||
#else
|
||||
template class Poco::SharedPtr<Poco::JSON::Array>;
|
||||
#endif
|
||||
|
||||
|
||||
namespace Poco {
|
||||
namespace JSON {
|
||||
|
@@ -19,8 +19,18 @@
|
||||
|
||||
using Poco::Dynamic::Var;
|
||||
|
||||
// Explicitly instatiated shared pointer in JSON library is required to
|
||||
// have known instance of the pointer to be used with VarHolder when
|
||||
// compiling with -fvisibility=hidden
|
||||
|
||||
#if defined(POCO_OS_FAMILY_WINDOWS)
|
||||
template class JSON_API Poco::SharedPtr<Poco::JSON::Object>;
|
||||
#else
|
||||
template class Poco::SharedPtr<Poco::JSON::Object>;
|
||||
#endif
|
||||
|
||||
namespace Poco {
|
||||
|
||||
namespace JSON {
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user