From 3c6139947c17cab65345f9d6c57a482ffe719879 Mon Sep 17 00:00:00 2001 From: Phillip Stephens Date: Sun, 30 Aug 2015 23:15:08 -0700 Subject: [PATCH] Fix linux build --- lib/inputdev/DualshockPad.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/inputdev/DualshockPad.cpp b/lib/inputdev/DualshockPad.cpp index f5a77bb..2ea9694 100644 --- a/lib/inputdev/DualshockPad.cpp +++ b/lib/inputdev/DualshockPad.cpp @@ -7,6 +7,8 @@ #ifdef _WIN32 static inline uint16_t bswap16(uint16_t val) {return _byteswap_ushort(val);} +#elif __GNUC__ +static inline uint16_t bswap16(uint16_t val) {return __builtin_bswap16(val); } #else static inline uint16_t bswap16(uint16_t val) {return __builtin_byteswap(val);} #endif