From 4bf58108d442b37ab4adf5ce3a4ecd63472ce254 Mon Sep 17 00:00:00 2001 From: Adam Lesinski Date: Mon, 3 Nov 2014 11:21:19 -0800 Subject: Fix issues that will be present in C++11 - char16_t is a distinct type, so stay consistent with it throughout the code base. - char16_t is defined as minimum size of 16 bits. Since we mmap and cast data structures onto raw memory, we need a precise definition (uint16_t), so we cast between that (and static_assert that they are the same size). Change-Id: I869c32637543bbcfb39d2643e7d9df10d33acd3c --- libs/androidfw/misc.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libs/androidfw/misc.cpp') diff --git a/libs/androidfw/misc.cpp b/libs/androidfw/misc.cpp index 29686efe3753..ea54cc56e7b0 100644 --- a/libs/androidfw/misc.cpp +++ b/libs/androidfw/misc.cpp @@ -22,9 +22,9 @@ #include #include -#include +#include #include -#include +#include using namespace android; -- cgit v1.2.3-59-g8ed1b