libretro / RetroArch

Cross-platform, sophisticated frontend for the libretro API. Licensed GPLv3.
http://www.libretro.com
GNU General Public License v3.0
9.99k stars 1.8k forks source link

Compilation error - Lakka ARM devices #6016

Closed ToKe79 closed 6 years ago

ToKe79 commented 6 years ago

Description

Compilation for ARM devices for Lakka (JEOS for RetroArch) fails with error: http://dpaste.com/1GCG0FM This happens for all ARM devices Lakka is build for (RPi, WeTek, Odroid, ...), compilation for x86_64 and i386 is OK.

Expected behavior

Compiles without error.

Actual behavior

Compilation fails.

Bisect Results

Last working compilation for ARM devices was with commit 7e61f08.

Version/Commit

Broke with commit 0389bc6 / PR #5997.

Environment information

gblues commented 6 years ago

You will find the swap_if_big16() macro in libretro-common/include/retro_endianness.h

When you connect a HID device to a big-endian system, the VID/PID are in Intel byte order and need to be swapped. The goal here is to do the swap at initialize time instead of runtime.