Skip to content

Commit 8274827

Browse files
authored
Revert symbol visibility changes (#390)
* Revert "Use hidden visibility for symbols for non-windows platforms (#341)" This reverts commit 4153d01. Signed-off-by: Adam Glustein <adam.glustein@point72.com> * Remove CSP_PUBLIC from autogen build Signed-off-by: Adam Glustein <adam.glustein@point72.com> --------- Signed-off-by: Adam Glustein <adam.glustein@point72.com>
1 parent 6a08733 commit 8274827

18 files changed

+27
-47
lines changed

CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,6 @@ else()
172172
if(CSP_BUILD_NO_CXX_ABI)
173173
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -D_GLIBCXX_USE_CXX11_ABI=0")
174174
endif()
175-
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fvisibility=hidden")
176175
if (COVERAGE)
177176
# TODO windows
178177
add_compile_options(--coverage)

Makefile

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,6 @@ build-debug: ## build the library ( DEBUG ) - May need a make clean when switch
2626
build-conda: ## build the library in Conda
2727
python setup.py build build_ext --csp-no-vcpkg --inplace
2828

29-
build-conda-debug: ## build the library ( DEBUG ) - in Conda
30-
SKBUILD_CONFIGURE_OPTIONS="" DEBUG=1 python setup.py build build_ext --csp-no-vcpkg --inplace
31-
3229
install: ## install library
3330
python -m pip install .
3431

cpp/csp/adapters/kafka/KafkaAdapterManager.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ struct KafkaStatusMessageTypeTraits
4747
using KafkaStatusMessageType = csp::Enum<KafkaStatusMessageTypeTraits>;
4848

4949
//Top level AdapterManager object for all kafka adapters in the engine
50-
class CSP_PUBLIC KafkaAdapterManager final : public csp::AdapterManager
50+
class KafkaAdapterManager final : public csp::AdapterManager
5151
{
5252
public:
5353
KafkaAdapterManager( csp::Engine * engine, const Dictionary & properties );

cpp/csp/adapters/parquet/DialectGenericListReaderInterface.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ class DialectGenericListReaderInterface
2525
};
2626

2727
template< typename T >
28-
class CSP_PUBLIC TypedDialectGenericListReaderInterface : public DialectGenericListReaderInterface
28+
class TypedDialectGenericListReaderInterface : public DialectGenericListReaderInterface
2929
{
3030
public:
3131
using Ptr = std::shared_ptr<TypedDialectGenericListReaderInterface<T>>;
@@ -45,4 +45,4 @@ class CSP_PUBLIC TypedDialectGenericListReaderInterface : public DialectGenericL
4545

4646
}
4747

48-
#endif
48+
#endif

cpp/csp/adapters/parquet/ParquetInputAdapterManager.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ namespace csp::adapters::parquet
1818

1919

2020
//Top level AdapterManager object for all parquet adapters in the engine
21-
class CSP_PUBLIC ParquetInputAdapterManager final : public csp::AdapterManager
21+
class ParquetInputAdapterManager final : public csp::AdapterManager
2222
{
2323
public:
2424
using GeneratorPtr = csp::Generator<std::string, csp::DateTime, csp::DateTime>::Ptr;

cpp/csp/adapters/parquet/ParquetOutputAdapterManager.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ class ParquetOutputFilenameAdapter;
2121
class ParquetDictBasketOutputWriter;
2222

2323
//Top level AdapterManager object for all parquet adapters in the engine
24-
class CSP_PUBLIC ParquetOutputAdapterManager final : public csp::AdapterManager
24+
class ParquetOutputAdapterManager final : public csp::AdapterManager
2525
{
2626
public:
2727
using FileVisitorCallback = std::function<void(const std::string &)>;

cpp/csp/adapters/parquet/ParquetReaderColumnAdapter.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -734,7 +734,7 @@ void ListColumnAdapter<ValueArrayType, ValueType>::readCurValue()
734734
if( this -> m_curChunkArray -> IsValid( curRow ) )
735735
{
736736
auto values = this -> m_curChunkArray -> value_slice( curRow );
737-
auto typedValues = std::static_pointer_cast<ValueArrayType>( values );
737+
auto typedValues = std::dynamic_pointer_cast<ValueArrayType>( values );
738738

739739
auto arrayValue = m_listReader -> create( typedValues -> length() );
740740
auto* internalBuffer = m_listReader -> getRawDataBuffer( arrayValue );

cpp/csp/adapters/websocket/ClientAdapterManager.h

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,10 @@ struct WebsocketClientStatusTypeTraits
4040

4141
using ClientStatusType = Enum<WebsocketClientStatusTypeTraits>;
4242

43-
class CSP_PUBLIC ClientAdapterManager final : public AdapterManager
43+
class ClientAdapterManager final : public AdapterManager
4444
{
45+
46+
4547
public:
4648
ClientAdapterManager(
4749
Engine * engine,
@@ -76,4 +78,4 @@ class CSP_PUBLIC ClientAdapterManager final : public AdapterManager
7678

7779
}
7880

79-
#endif
81+
#endif

cpp/csp/core/Exception.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
namespace csp
1111
{
1212

13-
class CSP_PUBLIC Exception : public std::exception
13+
class Exception : public std::exception
1414
{
1515
public:
1616
Exception( const char * exType, const std::string & description, const char * file, const char * func, int line ) :
@@ -59,7 +59,7 @@ class CSP_PUBLIC Exception : public std::exception
5959
};
6060

6161
#define __FILENAME__ (strrchr(__FILE__, '/') ? strrchr(__FILE__, '/') + 1 : __FILE__)
62-
#define CSP_DECLARE_EXCEPTION( DerivedException, BaseException ) class CSP_PUBLIC DerivedException : public BaseException { public: DerivedException( const char * exType, const std::string &r, const char * file, const char * func, int line ) : BaseException( exType, r, file, func, line ) {} };
62+
#define CSP_DECLARE_EXCEPTION( DerivedException, BaseException ) class DerivedException : public BaseException { public: DerivedException( const char * exType, const std::string &r, const char * file, const char * func, int line ) : BaseException( exType, r, file, func, line ) {} };
6363

6464
CSP_DECLARE_EXCEPTION( AssertionError, Exception )
6565
CSP_DECLARE_EXCEPTION( RuntimeException, Exception )

cpp/csp/core/Platform.h

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,7 @@
1414
#undef ERROR
1515
#undef GetMessage
1616

17-
#define CSP_LOCAL
18-
#define CSP_PUBLIC __declspec(dllexport)
17+
#define DLL_LOCAL
1918

2019
#ifdef CSPTYPESIMPL_EXPORTS
2120
#define CSPTYPESIMPL_EXPORT __declspec(dllexport)
@@ -90,11 +89,11 @@ inline uint8_t ffs(uint64_t n)
9089
}
9190

9291
#else
93-
#define CSPIMPL_EXPORT __attribute__ ((visibility ("default")))
94-
#define CSPTYPESIMPL_EXPORT __attribute__ ((visibility ("default")))
9592

96-
#define CSP_LOCAL __attribute__ ((visibility ("hidden")))
97-
#define CSP_PUBLIC __attribute__ ((visibility ("default")))
93+
#define CSPIMPL_EXPORT
94+
#define CSPTYPESIMPL_EXPORT
95+
96+
#define DLL_LOCAL __attribute__ ((visibility ("hidden")))
9897

9998
#define START_PACKED
10099
#define END_PACKED __attribute__((packed))

0 commit comments

Comments
 (0)