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

Merge remote-tracking branch 'qatar/master'

* qatar/master:
  compat: wrap math.h to avoid AIX-specific clashes

Conflicts:
	configure

See: bf18abb2eb79c00c69f6f83ede64536e3297793c, 0915b531bc62440914710d2989813563b0446c5e

Merged-by: Michael Niedermayer <michaelni@gmx.at>
Michael Niedermayer 11 лет назад
Родитель
Сommit
47ca9f041c
2 измененных файлов с 15 добавлено и 0 удалено
  1. 14 0
      compat/aix/math.h
  2. 1 0
      configure

+ 14 - 0
compat/aix/math.h

@@ -0,0 +1,14 @@
+/*
+ * Workaround aix-specific class() function clashing with ffmpeg class usage
+ */
+
+#ifndef COMPAT_AIX_MATH_H
+#define COMPAT_AIX_MATH_H
+
+#define class class_in_math_h_causes_problems
+
+#include_next <math.h>
+
+#undef class
+
+#endif /* COMPAT_AIX_MATH_H */

+ 1 - 0
configure

@@ -3401,6 +3401,7 @@ enabled spic && enable_weak pic
 # OS specific
 case $target_os in
     aix)
+        add_cppflags '-I\$(SRC_PATH)/compat/aix'
         ;;
     haiku)
         prefix_default="/boot/common"