ソースを参照

_BitScanReverse was introduced in Microsoft Visual Studio 2005

Anonymous Maarten 1 年間 前
コミット
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 -1;
     }
     }
     return _SDL_bsr_watcom(x);
     return _SDL_bsr_watcom(x);
-#elif defined(_MSC_VER)
+#elif defined(_MSC_VER) && _MSC_VER >= 1400
     unsigned long index;
     unsigned long index;
     if (_BitScanReverse(&index, x)) {
     if (_BitScanReverse(&index, x)) {
         return (int)index;
         return (int)index;