Commit bbe92eaa authored by Raphael Kubo da Costa's avatar Raphael Kubo da Costa Committed by Commit Bot

gamepad: Include <string.h> for memset()

IWYU after commit b8fdf46c ("Consolidate code to set device::Gamepad id
field"), which also fixes the libstdc++ build:

../../device/gamepad/public/cpp/gamepad.cc:28:3: error: use of undeclared identifier 'memset'; did you mean 'wmemset'?
  memset(id, 0, sizeof(id));

Bug: 957519
Change-Id: I5b5a8d9d7bc0de6e5b32ddd29ce0c5c17c883ac3
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1649496
Auto-Submit: Raphael Kubo da Costa <raphael.kubo.da.costa@intel.com>
Commit-Queue: Matt Reynolds <mattreynolds@chromium.org>
Reviewed-by: default avatarMatt Reynolds <mattreynolds@chromium.org>
Cr-Commit-Position: refs/heads/master@{#667236}
parent 30137020
...@@ -4,6 +4,8 @@ ...@@ -4,6 +4,8 @@
#include "device/gamepad/public/cpp/gamepad.h" #include "device/gamepad/public/cpp/gamepad.h"
#include <string.h>
namespace device { namespace device {
const float GamepadButton::kDefaultButtonPressedThreshold; const float GamepadButton::kDefaultButtonPressedThreshold;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment