From 914bb1bd2d7f98cae87e7c2167f8f0e72ccfe86c Mon Sep 17 00:00:00 2001 From: Colin Snover Date: Sat, 7 Oct 2017 12:59:47 -0500 Subject: COMMON: Undefine ABS if it is a macro Fixes iOS7 compilation when common/util.h is included after NSObjCRuntime.h, as happens in ios7_video.mm. --- common/util.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'common') diff --git a/common/util.h b/common/util.h index 13c364e97d..a098a6a437 100644 --- a/common/util.h +++ b/common/util.h @@ -33,6 +33,9 @@ #define IS_ALIGNED(value, alignment) \ ((((size_t)value) & ((alignment) - 1)) == 0) +#ifdef ABS +#undef ABS +#endif #ifdef MIN #undef MIN -- cgit v1.2.3