Skip to content

Commit c4a6a09

Browse files
authored
Merge pull request #19273 from compnerd/win-tapi
2 parents d40a182 + 709395f commit c4a6a09

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/TBDGen/tapi/Defines.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,11 @@
2222
#define TAPI_NAMESPACE_V1_BEGIN namespace tapi { inline namespace v1 {
2323
#define TAPI_NAMESPACE_V1_END } }
2424

25+
#if defined(_WIN32)
26+
#define TAPI_PUBLIC
27+
#else
2528
#define TAPI_PUBLIC __attribute__((visibility ("default")))
29+
#endif
2630

2731
#endif // TAPI_DEFINES_H
2832

0 commit comments

Comments
 (0)