Merge pull request #349 from morphis/f/fix-comp-errors-armhf

Fix compilation errors on armhf
This commit is contained in:
Simon Fels 2017-07-10 21:41:23 +02:00 committed by GitHub
commit 00ea7d9641
2 changed files with 5 additions and 3 deletions

View file

@ -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);
}

View file

@ -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 {