Browse Source

Do also check if __aarch64__ is defined instead of only __arm64__ (#660)

tags/v1.9.9
John Zimmermann Filipe Coelho <falktx@falktx.com> 6 years ago
parent
commit
e68b310b23
2 changed files with 2 additions and 2 deletions
  1. +1
    -1
      source/includes/CarlaDefines.h
  2. +1
    -1
      source/modules/water/memory/ByteOrder.h

+ 1
- 1
source/includes/CarlaDefines.h View File

@@ -60,7 +60,7 @@
# define CARLA_OS_UNIX # define CARLA_OS_UNIX
#endif #endif


#if defined (__LP64__) || defined (_LP64) || defined (__arm64__) || defined(CARLA_OS_WIN64)
#if defined (__LP64__) || defined (_LP64) || defined (__arm64__) || defined (__aarch64__) || defined(CARLA_OS_WIN64)
# define CARLA_OS_64BIT # define CARLA_OS_64BIT
#endif #endif




+ 1
- 1
source/modules/water/memory/ByteOrder.h View File

@@ -153,7 +153,7 @@ inline uint32 ByteOrder::swap (uint32 n) noexcept
{ {
#ifdef CARLA_OS_MAC #ifdef CARLA_OS_MAC
return OSSwapInt32 (n); return OSSwapInt32 (n);
#elif defined(CARLA_OS_WIN) || ! (defined (__arm__) || defined (__arm64__))
#elif defined(CARLA_OS_WIN) || ! (defined (__arm__) || defined (__arm64__) || defined (__aarch64__))
asm("bswap %%eax" : "=a"(n) : "a"(n)); asm("bswap %%eax" : "=a"(n) : "a"(n));
return n; return n;
#else #else


Loading…
Cancel
Save