瀏覽代碼

Fix compilation with MSVC 2013

Błażej Szczygieł 8 年之前
父節點
當前提交
570a8e6b40
共有 1 個文件被更改,包括 5 次插入1 次删除
  1. 5 1
      thirdparty/libvpx/vpx_config.h

+ 5 - 1
thirdparty/libvpx/vpx_config.h

@@ -9,7 +9,11 @@
 #ifndef VPX_CONFIG_H
 #define VPX_CONFIG_H
 #define RESTRICT
-#define INLINE inline
+#if defined(_MSC_VER) && (_MSC_VER < 1900)
+	#define INLINE __inline
+#else
+	#define INLINE inline
+#endif
 
 #define HAVE_MIPS32 0
 #define HAVE_MEDIA 0