Permalink
Browse files

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.
  • Loading branch information...
csnover committed Oct 7, 2017
1 parent a475295 commit 914bb1bd2d7f98cae87e7c2167f8f0e72ccfe86c
Showing with 3 additions and 0 deletions.
  1. +3 −0 common/util.h
View
@@ -33,6 +33,9 @@
#define IS_ALIGNED(value, alignment) \
((((size_t)value) & ((alignment) - 1)) == 0)
#ifdef ABS
#undef ABS
#endif
#ifdef MIN
#undef MIN

0 comments on commit 914bb1b

Please sign in to comment.