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