浏览代码

_BitScanReverse was introduced in Microsoft Visual Studio 2005

Anonymous Maarten 11 月之前
父节点
当前提交
c8f3f1b461
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      include/SDL3/SDL_bits.h

+ 1 - 1
include/SDL3/SDL_bits.h

@@ -78,7 +78,7 @@ SDL_FORCE_INLINE int SDL_MostSignificantBitIndex32(Uint32 x)
         return -1;
     }
     return _SDL_bsr_watcom(x);
-#elif defined(_MSC_VER)
+#elif defined(_MSC_VER) && _MSC_VER >= 1400
     unsigned long index;
     if (_BitScanReverse(&index, x)) {
         return (int)index;