Unreviewed, fix iOS build with recent SDKs.
authorcdumez@apple.com <cdumez@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 4 Apr 2019 20:47:45 +0000 (20:47 +0000)
committercdumez@apple.com <cdumez@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 4 Apr 2019 20:47:45 +0000 (20:47 +0000)
* platform/gamepad/cocoa/GameControllerGamepad.mm:
(WebCore::GameControllerGamepad::GameControllerGamepad):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@243901 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebCore/ChangeLog
Source/WebCore/platform/gamepad/cocoa/GameControllerGamepad.mm

index 6819ac2..57866f6 100644 (file)
@@ -1,3 +1,10 @@
+2019-04-04  Chris Dumez  <cdumez@apple.com>
+
+        Unreviewed, fix iOS build with recent SDKs.
+
+        * platform/gamepad/cocoa/GameControllerGamepad.mm:
+        (WebCore::GameControllerGamepad::GameControllerGamepad):
+
 2019-04-04  Eric Carlson  <eric.carlson@apple.com>
 
         [MediaStream] Host should be able to mute screen capture and camera/microphone independently
index 670abcc..394a170 100644 (file)
@@ -39,8 +39,11 @@ GameControllerGamepad::GameControllerGamepad(GCController *controller, unsigned
     controller.playerIndex = (GCControllerPlayerIndex)(GCControllerPlayerIndex1 + index);
 
     m_extendedGamepad = controller.extendedGamepad;
+
+    ALLOW_DEPRECATED_DECLARATIONS_BEGIN
     if (!m_extendedGamepad)
         m_gamepad = controller.gamepad;
+    ALLOW_DEPRECATED_DECLARATIONS_END
 
     ASSERT(m_extendedGamepad || m_gamepad);