Skip to content

Commit 5bbbc89

Browse files
committed
ci: handle newer clang versions and builtins to fix mingw build
1 parent 33107d7 commit 5bbbc89

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

include/libremidi/system_error2.hpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,11 @@ using is_trivially_move_constructible = is_trivially_copyable<T>;
186186
#if defined(__cpp_lib_trivially_relocatable)
187187
using std::is_trivially_relocatable;
188188
#elif defined(__has_builtin)
189-
#if __has_builtin(__is_trivially_relocatable)
189+
#if __has_builtin(__builtin_is_cpp_trivially_relocatable)
190+
template <class T>
191+
struct is_trivially_relocatable : std::bool_constant<__builtin_is_cpp_trivially_relocatable(T)> { };
192+
#define STDX_MUST_SPECIALIZE_IS_TRIVIALLY_RELOCATABLE
193+
#elif __has_builtin(__is_trivially_relocatable)
190194
template <class T>
191195
struct is_trivially_relocatable : std::bool_constant<__is_trivially_relocatable(T)> { };
192196
#define STDX_MUST_SPECIALIZE_IS_TRIVIALLY_RELOCATABLE

0 commit comments

Comments
 (0)