diff --git a/include/crill/bytewise_atomic_memcpy.h b/include/crill/bytewise_atomic_memcpy.h index 86527c2..6815a46 100644 --- a/include/crill/bytewise_atomic_memcpy.h +++ b/include/crill/bytewise_atomic_memcpy.h @@ -42,11 +42,12 @@ namespace crill { for (std::size_t i = 0; i < count; ++i) { #if __cpp_lib_atomic_ref - dest_bytes[i] = std::atomic_ref(src_bytes[i]).load(std::memory_order_relaxed); + dest_bytes[i] = std::atomic_ref(src_bytes[i]).load(std::memory_order_relaxed); #elif CRILL_CLANG || CRILL_GCC dest_bytes[i] = __atomic_load_n(src_bytes + i, __ATOMIC_RELAXED); #else // No atomic_ref or equivalent functionality available on this platform! + #error "Platform not supported!" #endif } @@ -81,6 +82,7 @@ namespace crill { __atomic_store_n(dest_bytes + i, src_bytes[i], __ATOMIC_RELAXED); #else // No atomic_ref or equivalent functionality available on this platform! + #error "Platform not supported!" #endif } diff --git a/include/crill/impl/progressive_backoff_wait_impl.h b/include/crill/impl/progressive_backoff_wait_impl.h index d8fafb5..0952a0c 100644 --- a/include/crill/impl/progressive_backoff_wait_impl.h +++ b/include/crill/impl/progressive_backoff_wait_impl.h @@ -11,7 +11,11 @@ #if CRILL_INTEL #include #elif CRILL_ARM - #include + #ifdef _WIN32 + #include + #else + #include + #endif #endif namespace crill::impl diff --git a/include/crill/platform.h b/include/crill/platform.h index a25fb99..9a9ca51 100644 --- a/include/crill/platform.h +++ b/include/crill/platform.h @@ -11,7 +11,7 @@ #define CRILL_ARM 1 #define CRILL_32BIT 1 #define CRILL_ARM_32BIT 1 -#elif defined (__arm64__) +#elif defined (__arm64__) || defined (_M_ARM64) #define CRILL_ARM 1 #define CRILL_64BIT 1 #define CRILL_ARM_64BIT 1