diff options
Diffstat (limited to 'lib/libdrm/util_math.h')
-rw-r--r-- | lib/libdrm/util_math.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libdrm/util_math.h b/lib/libdrm/util_math.h index 02b15a8e5..35bf45129 100644 --- a/lib/libdrm/util_math.h +++ b/lib/libdrm/util_math.h @@ -29,6 +29,6 @@ #define MAX3( A, B, C ) ((A) > (B) ? MAX2(A, C) : MAX2(B, C)) #define __align_mask(value, mask) (((value) + (mask)) & ~(mask)) -#define ALIGN(value, alignment) __align_mask(value, (typeof(value))((alignment) - 1)) +#define ALIGN(value, alignment) __align_mask(value, (__typeof__(value))((alignment) - 1)) #endif /*_UTIL_MATH_H_*/ |