Skip to content

Commit

Permalink
[ci] More ci work
Browse files Browse the repository at this point in the history
  • Loading branch information
jcelerier committed Oct 13, 2024
1 parent 7ceb681 commit 7faf943
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cmake/libremidi.deps.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ if(LIBREMIDI_NO_BOOST AND LIBREMIDI_FIND_BOOST)
endif()

if(LIBREMIDI_FIND_BOOST)
find_package(Boost REQUIRED OPTIONAL_COMPONENTS cobalt)
find_package(Boost REQUIRED)
find_package(Boost OPTIONAL_COMPONENTS cobalt)
endif()

# readerwriterqueue
Expand Down
16 changes: 16 additions & 0 deletions include/libremidi/writer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,22 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#include <ostream>
#include <string>

#if !defined(__cpp_lib_bit_cast)
namespace std
{
template <typename R, typename T>
[[nodiscard]]
constexpr R bit_cast(const T& v) noexcept
{
union
{
R res;
T init;
} u{.init = v};
return u.res;
}
}
#endif
namespace libremidi
{
namespace util
Expand Down

0 comments on commit 7faf943

Please sign in to comment.