diff options
author | 2020-11-05 15:08:48 +0000 | |
---|---|---|
committer | 2020-11-05 15:08:48 +0000 | |
commit | 5872c14d7f1217cfc86e9fe90bb01f0afc042ded (patch) | |
tree | d334d5b4ab4f6aa895855678c8f36ea860d0a057 /libs/input/KeyCharacterMap.cpp | |
parent | f7e67dbf909c4642dab729ffde8ef299ae507be9 (diff) | |
parent | faa986c076dffff0be41dd866462494a76d0ad90 (diff) |
Merge "Fix libinput mac build, hopefully."
Diffstat (limited to 'libs/input/KeyCharacterMap.cpp')
-rw-r--r-- | libs/input/KeyCharacterMap.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/libs/input/KeyCharacterMap.cpp b/libs/input/KeyCharacterMap.cpp index 999d3c7508..f5432ad3ee 100644 --- a/libs/input/KeyCharacterMap.cpp +++ b/libs/input/KeyCharacterMap.cpp @@ -19,7 +19,9 @@ #include <stdlib.h> #include <string.h> +#ifdef __linux__ #include <binder/Parcel.h> +#endif #include <android/keycodes.h> #include <attestation/HmacKeyManager.h> #include <input/InputEventLabels.h> @@ -585,6 +587,7 @@ void KeyCharacterMap::addLockedMetaKey(Vector<KeyEvent>& outEvents, } } +#ifdef __linux__ std::shared_ptr<KeyCharacterMap> KeyCharacterMap::readFromParcel(Parcel* parcel) { if (parcel == nullptr) { ALOGE("%s: Null parcel", __func__); @@ -670,7 +673,7 @@ void KeyCharacterMap::writeToParcel(Parcel* parcel) const { parcel->writeInt32(0); } } - +#endif // __linux__ // --- KeyCharacterMap::Key --- |