From 5e2ac49da7decd5ee3734669d4ee559ce7d621c8 Mon Sep 17 00:00:00 2001 From: Matthew Budd Date: Fri, 7 Aug 2020 17:09:12 -0400 Subject: [PATCH] Bug fix for LSB_FIRST definition in GTK build in cmake environment. --- src/drivers/sdl/sdl-video.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/drivers/sdl/sdl-video.cpp b/src/drivers/sdl/sdl-video.cpp index 2b5e44f2..e9667696 100644 --- a/src/drivers/sdl/sdl-video.cpp +++ b/src/drivers/sdl/sdl-video.cpp @@ -51,6 +51,10 @@ #include #include +#if __BYTE_ORDER == __LITTLE_ENDIAN +#define LSB_FIRST +#endif + // GLOBALS extern Config *g_config;