summaryrefslogtreecommitdiff
path: root/platform/x11
diff options
context:
space:
mode:
authormarxin <mliska@suse.cz>2019-03-05 22:17:20 +0100
committermarxin <mliska@suse.cz>2019-03-05 22:17:20 +0100
commitf0d2f079c40a9f4eb36c8a17c985aa12ff4d3d94 (patch)
treeb49d42d8bfea9c826734aa26305aaf6260a6cfb4 /platform/x11
parentc40877bc6ac81ecf0b8dc70ad1c708ac1b2bf167 (diff)
Replace usage of __bswap_16 with BSWAP16 (#25714).
Diffstat (limited to 'platform/x11')
-rw-r--r--platform/x11/joypad_linux.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/platform/x11/joypad_linux.cpp b/platform/x11/joypad_linux.cpp
index 7cf0a1ef1e..c4dd8fe0e0 100644
--- a/platform/x11/joypad_linux.cpp
+++ b/platform/x11/joypad_linux.cpp
@@ -367,12 +367,12 @@ void JoypadLinux::open_joypad(const char *p_path) {
joy.fd = fd;
joy.devpath = String(p_path);
setup_joypad_properties(joy_num);
- sprintf(uid, "%04x%04x", __bswap_16(inpid.bustype), 0);
+ sprintf(uid, "%04x%04x", BSWAP16(inpid.bustype), 0);
if (inpid.vendor && inpid.product && inpid.version) {
- uint16_t vendor = __bswap_16(inpid.vendor);
- uint16_t product = __bswap_16(inpid.product);
- uint16_t version = __bswap_16(inpid.version);
+ uint16_t vendor = BSWAP16(inpid.vendor);
+ uint16_t product = BSWAP16(inpid.product);
+ uint16_t version = BSWAP16(inpid.version);
sprintf(uid + String(uid).length(), "%04x%04x%04x%04x%04x%04x", vendor, 0, product, 0, version, 0);
input->joy_connection_changed(joy_num, true, name, uid);