From 5c08c6498f9521dfbf471308f1a7ca8b98a754f8 Mon Sep 17 00:00:00 2001 From: Lava Block Date: Mon, 24 Jan 2022 12:13:08 +0100 Subject: [PATCH] Fix build - 64 bit functions do not exist --- include/vk_mem_alloc.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/vk_mem_alloc.h b/include/vk_mem_alloc.h index 97e321c..7544c53 100644 --- a/include/vk_mem_alloc.h +++ b/include/vk_mem_alloc.h @@ -3074,7 +3074,7 @@ static inline uint32_t VmaCountBitsSet(uint32_t v) static inline uint8_t VmaBitScanLSB(uint64_t mask) { -#ifdef _MSC_VER +#if defined(_MSC_VER) && defined(_WIN64) unsigned long pos; if (_BitScanForward64(&pos, mask)) return static_cast(pos); @@ -3108,7 +3108,7 @@ static inline uint8_t VmaBitScanLSB(uint32_t mask) static inline uint8_t VmaBitScanMSB(uint64_t mask) { -#ifdef _MSC_VER +#if defined(_MSC_VER) && defined(_WIN64) unsigned long pos; if (_BitScanReverse64(&pos, mask)) return static_cast(pos);