Fix compilation errors on armhf
This commit is contained in:
parent
7fc8bb46d2
commit
41c0390e42
2 changed files with 5 additions and 3 deletions
|
|
@ -58,7 +58,7 @@ void BinaryWriter::write_uint16(std::uint16_t value) {
|
|||
break;
|
||||
}
|
||||
|
||||
*reinterpret_cast<std::uint16_t*>(&(*current_)) = v;
|
||||
memcpy(&(*current_), &v, sizeof(std::uint16_t));
|
||||
current_ += sizeof(v);
|
||||
}
|
||||
|
||||
|
|
@ -77,8 +77,7 @@ void BinaryWriter::write_uint32(std::uint32_t value) {
|
|||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
*reinterpret_cast<std::uint32_t*>(&(*current_)) = v;
|
||||
memcpy(&(*current_), &v, sizeof(std::uint32_t));
|
||||
current_ += sizeof(v);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -16,8 +16,11 @@
|
|||
|
||||
#include "anbox/graphics/emugl/RenderThreadInfo.h"
|
||||
|
||||
#pragma GCC diagnostic push
|
||||
#pragma GCC diagnostic ignored "-Wcast-align"
|
||||
#include "external/android-emugl/shared/emugl/common/lazy_instance.h"
|
||||
#include "external/android-emugl/shared/emugl/common/thread_store.h"
|
||||
#pragma GCC diagnostic pop
|
||||
|
||||
namespace {
|
||||
class ThreadInfoStore : public ::emugl::ThreadStore {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue