Просмотр исходного кода

Merge pull request #7122 from zaps166/webm_msvc2013

Fix compilation with MSVC 2013
Rémi Verschelde 8 лет назад
Родитель
Сommit
6b2db2f1b6
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