diff --git a/compat/aix/math.h b/compat/aix/math.h new file mode 100644 index 0000000000..687525b290 --- /dev/null +++ b/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 + +#undef class + +#endif /* COMPAT_AIX_MATH_H */ diff --git a/configure b/configure index 0e1daaeee5..54e46c8a7b 100755 --- a/configure +++ b/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"