diff options
author | Ziyan <jaraidaniel@gmail.com> | 2016-04-07 19:04:34 +0200 |
---|---|---|
committer | Andreas Blaesius <skate4life@gmx.de> | 2016-06-15 20:41:56 +0200 |
commit | c13fdd71fb74c3a899bc89f97469b72e8c792bbc (patch) | |
tree | ccfcf04a7d1fc83549062c37b0b7589307f35f65 /libsecril-compat/secril-compat.c | |
parent | f7b45f76c04f8268375f872184b9701a76e19a07 (diff) | |
download | device_samsung_espresso3g-c13fdd71fb74c3a899bc89f97469b72e8c792bbc.zip device_samsung_espresso3g-c13fdd71fb74c3a899bc89f97469b72e8c792bbc.tar.gz device_samsung_espresso3g-c13fdd71fb74c3a899bc89f97469b72e8c792bbc.tar.bz2 |
espresso3g: replace libsamsung_symbols with libsecril-compat
- also some minor cleanups
Change-Id: Id21aac88ea754c0fb3d20e26986fcb0f37f76856
Diffstat (limited to 'libsecril-compat/secril-compat.c')
-rw-r--r-- | libsecril-compat/secril-compat.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/libsecril-compat/secril-compat.c b/libsecril-compat/secril-compat.c new file mode 100644 index 0000000..fc11450 --- /dev/null +++ b/libsecril-compat/secril-compat.c @@ -0,0 +1,13 @@ +#include <sys/types.h> + +/** + * With the switch to C++11 by default, char16_t became a unique type, + * rather than basically just a typedef of uint16_t. As a result, the + * compiler now mangles the symbol for writeString16 differently. Our + * RIL references the old symbol of course, not the new one. + */ +uintptr_t _ZN7android6Parcel13writeString16EPKDsj(void *instance, void *str, size_t len); +uintptr_t _ZN7android6Parcel13writeString16EPKtj(void *instance, void *str, size_t len) +{ + return _ZN7android6Parcel13writeString16EPKDsj(instance, str, len); +} |