Skip to content

Commit 9904d26

Browse files
fix rpc utest
1 parent 49b0077 commit 9904d26

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

include/livekit/visibility.h

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@
2020
//
2121
// On Unix, the SDK is built with -fvisibility=hidden / -fvisibility-inlines-hidden,
2222
// so every symbol defaults to hidden. LIVEKIT_API re-exposes the symbol with
23-
// default visibility. Consumers see no annotation (just a normal declaration).
23+
// default visibility. Consumers also need default visibility so public RTTI
24+
// stays unique across shared-library boundaries.
2425
//
2526
// On Windows, the SDK is built without WINDOWS_EXPORT_ALL_SYMBOLS, so symbols
2627
// must be explicitly tagged with __declspec(dllexport) when building the SDK
@@ -34,11 +35,7 @@
3435
#define LIVEKIT_API __declspec(dllimport)
3536
#endif
3637
#else
37-
#if defined(LIVEKIT_BUILDING_SDK)
3838
#define LIVEKIT_API __attribute__((visibility("default")))
39-
#else
40-
#define LIVEKIT_API
41-
#endif
4239
#endif
4340

4441
// LIVEKIT_INTERNAL_API marks a symbol that is NOT part of the public ABI but

0 commit comments

Comments
 (0)