Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
as-macros-private.h: Define macros for visibility for clang-cl
On clang-cl (i.e. Visual Studio-like meaning _MSC_VER is defined) builds, symbols in shared builds have visibility to be hidden by default, and decorating symbols with GCC's default visibility is not enough to export the symbol. Some private symbols must still be exported from the appstream DLL for the tools and tests, so define versions of the visibility macros that are suitable for use for clang-cl, and add another (private) macro that is used to export symbols that do not fall into sections where we explicitly want visibility to be hidden. Consequently, use the macros in as-desktop-entry.h so that we don't fall into the situation where clang-cl complains as we are attempting to do a __declspec(dllexport) in a hidden visibility section.
- Loading branch information