aom_integer.h: set AOM_FORCE_INLINE to __inline for Win32
This avoids out of memory failures with some versions of Visual Studio.
__forceinline is used with Visual Studio 2022 for now as the issue
hasn't been observed with that version.
Bug: aomedia:3310
Fixed: aomedia:3310
Change-Id: Icf824b85b9acfc13e9e1ae69f5eef838e2d05fb4
diff --git a/aom/aom_integer.h b/aom/aom_integer.h
index d9bba09..085157d 100644
--- a/aom/aom_integer.h
+++ b/aom/aom_integer.h
@@ -15,7 +15,13 @@
#include <stddef.h>
#if defined(_MSC_VER)
+// Work around compiler out of memory issues with Win32 builds. This issue has
+// been observed with Visual Studio 2017 & 2019.
+#if defined(_M_IX86) && _MSC_VER < 1930
+#define AOM_FORCE_INLINE __inline
+#else
#define AOM_FORCE_INLINE __forceinline
+#endif
#define AOM_INLINE __inline
#else
#define AOM_FORCE_INLINE __inline__ __attribute__((always_inline))