From 40e3eb9be96ec69259a000d08fe4a853a330007f Mon Sep 17 00:00:00 2001 From: Duncan Hopkins Date: Wed, 26 Aug 2020 17:39:56 +0100 Subject: [PATCH] mesa: Undefine ALIGN macro before it is used as a function name. Issues on MacOS. Acked-by: Erik Faye-Lund Part-of: --- src/util/u_math.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/util/u_math.h b/src/util/u_math.h index b725489b520..2b12267b961 100644 --- a/src/util/u_math.h +++ b/src/util/u_math.h @@ -691,6 +691,10 @@ util_memcpy_cpu_to_le32(void * restrict dest, const void * restrict src, size_t * * \sa ROUND_DOWN_TO() */ + +#if defined(ALIGN) +#undef ALIGN +#endif static inline uintptr_t ALIGN(uintptr_t value, int32_t alignment) {