Skip to content

Commit

Permalink
Don't use __uuidof without GUID (#1180)
Browse files Browse the repository at this point in the history
  • Loading branch information
oldnewthing authored Sep 8, 2022
1 parent 9fc5cec commit d029f04
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions strings/base_meta.h
Original file line number Diff line number Diff line change
Expand Up @@ -119,12 +119,12 @@ namespace winrt::impl

template <typename T>
#if defined(__clang__)
#if __has_declspec_attribute(uuid)
#if __has_declspec_attribute(uuid) && defined(WINRT_IMPL_IUNKNOWN_DEFINED)
inline const guid guid_v{ __uuidof(T) };
#else
inline constexpr guid guid_v{};
#endif
#elif defined(_MSC_VER)
#elif defined(_MSC_VER) && defined(WINRT_IMPL_IUNKNOWN_DEFINED)
inline constexpr guid guid_v{ __uuidof(T) };
#else
inline constexpr guid guid_v{};
Expand Down

0 comments on commit d029f04

Please sign in to comment.