diff options
Diffstat (limited to 'snappy-stubs-internal.h')
-rw-r--r-- | snappy-stubs-internal.h | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/snappy-stubs-internal.h b/snappy-stubs-internal.h index 683b849..97263f3 100644 --- a/snappy-stubs-internal.h +++ b/snappy-stubs-internal.h @@ -69,19 +69,13 @@ #include "snappy-stubs-public.h" -#if defined(__x86_64__) - -// Enable 64-bit optimized versions of some routines. +// Used to enable 64-bit optimized versions of some routines. +#if defined(__x86_64__) || defined(_M_X64) #define ARCH_K8 1 - -#elif defined(__ppc64__) - +#elif defined(__PPC64__) || defined(__powerpc64__) #define ARCH_PPC 1 - -#elif defined(__aarch64__) - +#elif defined(__aarch64__) || defined(_M_ARM64) #define ARCH_ARM 1 - #endif // Needed by OS X, among others. |