From d3635f3ab0a234c830dfb4ddb9c6a4ea2677dace Mon Sep 17 00:00:00 2001 From: Luca Barbato Date: Thu, 4 Jul 2013 21:53:08 +0200 Subject: compat: wrap math.h to avoid AIX-specific clashes AIX defines a class() function in its math.h header without any guard. --- compat/aix/math.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 compat/aix/math.h (limited to 'compat') 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 + +#undef class + +#endif /* COMPAT_AIX_MATH_H */ -- cgit v1.2.3