Skip to content

Commit 709395f

Browse files
committed
tapi: make it build on Windows
Since TAPI is currently built statically, just define away `TAPI_PUBLIC` on Windows. If tapi is to be built dynamic, we would need to annotate dllstorage on the public interfaces.
1 parent 9cda374 commit 709395f

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)