Skip to content

Commit

Permalink
fix(sourceppc): missing include
Browse files Browse the repository at this point in the history
  • Loading branch information
craftablescience committed Jul 10, 2024
1 parent 8bd6761 commit f71c102
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 1 addition & 0 deletions lang/c/include/sourceppc/Convert.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
#error "This header can only be used in C++!"
#endif

#include <cstring>
#include <string>
#include <string_view>
#include <type_traits>
Expand Down
2 changes: 0 additions & 2 deletions lang/c/src/sourceppc/Convert.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
#include <sourceppc/Convert.hpp>

#include <cstring>

sourcepp_buffer_t Convert::toBuffer(const std::vector<std::byte>& vec) {
auto buf = sourcepp_buffer_new(vec.size());
std::memcpy(buf.data, vec.data(), vec.size());
Expand Down

0 comments on commit f71c102

Please sign in to comment.