diff options
| author | 2020-11-04 17:39:36 -0800 | |
|---|---|---|
| committer | 2020-11-04 18:56:42 -0800 | |
| commit | faa986c076dffff0be41dd866462494a76d0ad90 (patch) | |
| tree | 767586452e7f9b522df5f4f00ad48e54c342afbd /include/input/KeyCharacterMap.h | |
| parent | a267bd3745798d20270dff422bafc73a64d227ae (diff) | |
Fix libinput mac build, hopefully.
Restore the ifdefs removed in go/ag/12549959, but using
ifdef __linux__ instead of __ANDROID__.
Test: m libinput
Bug: 172023026
Change-Id: Iafbf592e7b937b780e5ffc2df490a6c17f5f6cf5
Diffstat (limited to 'include/input/KeyCharacterMap.h')
| -rw-r--r-- | include/input/KeyCharacterMap.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/input/KeyCharacterMap.h b/include/input/KeyCharacterMap.h index 339c7ebfeb..3ac5cff18c 100644 --- a/include/input/KeyCharacterMap.h +++ b/include/input/KeyCharacterMap.h @@ -19,7 +19,9 @@ #include <stdint.h> +#ifdef __linux__ #include <binder/IBinder.h> +#endif #include <android-base/result.h> #include <input/Input.h> @@ -132,11 +134,13 @@ public: void tryRemapKey(int32_t scanCode, int32_t metaState, int32_t* outKeyCode, int32_t* outMetaState) const; +#ifdef __linux__ /* Reads a key map from a parcel. */ static std::shared_ptr<KeyCharacterMap> readFromParcel(Parcel* parcel); /* Writes a key map to a parcel. */ void writeToParcel(Parcel* parcel) const; +#endif KeyCharacterMap(const KeyCharacterMap& other); |