From 95c98919012e113b8a75c7f3c3b3f88ee45f8669 Mon Sep 17 00:00:00 2001 From: Dan Albert Date: Tue, 26 Jul 2022 23:16:24 +0000 Subject: [PATCH] Fix C compatibility in AMidi.h. Bug: https://github.com/android/ndk/issues/1739 Test: treehugger Change-Id: I1ab7fabeaa592a2c7011daddff8661bdc3950da1 Signed-off-by: Pranav Vashi --- media/native/midi/include/amidi/AMidi.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/media/native/midi/include/amidi/AMidi.h b/media/native/midi/include/amidi/AMidi.h index fbb7fb329659d..2b3170326285b 100644 --- a/media/native/midi/include/amidi/AMidi.h +++ b/media/native/midi/include/amidi/AMidi.h @@ -66,7 +66,7 @@ enum { * * Introduced in API 33. */ -enum AMidiDevice_Protocol : int32_t { +typedef enum AMidiDevice_Protocol : int32_t { /** * Constant representing a default protocol with Universal MIDI Packets (UMP). * UMP is defined in "Universal MIDI Packet (UMP) Format and MIDI 2.0 Protocol" spec. @@ -131,7 +131,7 @@ enum AMidiDevice_Protocol : int32_t { * MIDI-CI is defined in "MIDI Capability Inquiry (MIDI-CI)" spec. */ AMIDI_DEVICE_PROTOCOL_UNKNOWN = -1 -}; +} AMidiDevice_Protocol; /* * Device API