summaryrefslogtreecommitdiff
path: root/compat/aix/math.h
diff options
context:
space:
mode:
Diffstat (limited to 'compat/aix/math.h')
-rw-r--r--compat/aix/math.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/compat/aix/math.h b/compat/aix/math.h
new file mode 100644
index 0000000000..7c8134c8f5
--- /dev/null
+++ b/compat/aix/math.h
@@ -0,0 +1,14 @@
+/*
+ * Workaround aix-specific class() function clashing with libav 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 */