Skip to content

Commit

Permalink
tapi: make it build on Windows
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
compnerd committed Sep 12, 2018
1 parent 9cda374 commit 709395f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/TBDGen/tapi/Defines.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,11 @@
#define TAPI_NAMESPACE_V1_BEGIN namespace tapi { inline namespace v1 {
#define TAPI_NAMESPACE_V1_END } }

#if defined(_WIN32)
#define TAPI_PUBLIC
#else
#define TAPI_PUBLIC __attribute__((visibility ("default")))
#endif

#endif // TAPI_DEFINES_H

0 comments on commit 709395f

Please sign in to comment.