glamor: don't redefine ALIGN macro if it exists

On FreeBSD the ALIGN macro already exists in the standard headers,
so we sholdn't redefine it here.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
Enrico Weigelt, metux IT consult 2025-08-04 19:48:08 +02:00 • committed by Enrico Weigelt
commit 02f04ec0aa

View file

@ -564,7 +564,9 @@
(c)[1] = (float)y; \
} while(0)
#ifndef ALIGN /* FreeBSD already has it */
#define ALIGN(i,m) (((i) + (m) - 1) & ~((m) - 1))
#endif
#define MIN(a,b) ((a) < (b) ? (a) : (b))
#define MAX(a,b) ((a) > (b) ? (a) : (b))