Fix building on i686 Linux

I doubt anyone actually cares about support for it but hey may as well?
This commit is contained in:
Nadia Holmquist Pedersen
2024-08-01 21:57:32 +02:00
parent 37c0320cbe
commit f3f6a6a194
3 changed files with 3 additions and 3 deletions

View File

@ -28,7 +28,7 @@ namespace melonDS
{
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wattributes"
#if defined(__GNUC__) && (__GNUC__ >= 11) // gcc 11.*
#if defined(__GNUC__) && (__GNUC__ >= 11) && defined(__SIZEOF_INT128__) // gcc 11.*
// NOTE: Yes, the compiler does *not* recognize this code pattern, so it is indeed an optimization.
__attribute((always_inline)) static void Bswap128(void* Dst, const void* Src)
{