From faa986c076dffff0be41dd866462494a76d0ad90 Mon Sep 17 00:00:00 2001 From: Brett Chabot Date: Wed, 4 Nov 2020 17:39:36 -0800 Subject: 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 --- include/input/KeyCharacterMap.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'include/input/KeyCharacterMap.h') 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 +#ifdef __linux__ #include +#endif #include #include @@ -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 readFromParcel(Parcel* parcel); /* Writes a key map to a parcel. */ void writeToParcel(Parcel* parcel) const; +#endif KeyCharacterMap(const KeyCharacterMap& other); -- cgit v1.2.3-59-g8ed1b