From c3489ebef862e676cf38bd5d0dd0a74fc9b96453 Mon Sep 17 00:00:00 2001 From: JupiterRider <60042618+JupiterRider@users.noreply.github.com> Date: Fri, 29 Nov 2024 19:28:34 +0100 Subject: [PATCH] fix "warning: 'ALIGN' macro redefined" on MacOS (same as 5943b16badb38fd6e2470ad3c4ae7172e67e40e4) --- raylib/external/jar_xm.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/raylib/external/jar_xm.h b/raylib/external/jar_xm.h index b5e80e4..422d82c 100644 --- a/raylib/external/jar_xm.h +++ b/raylib/external/jar_xm.h @@ -518,6 +518,10 @@ int jar_xm_create_context(jar_xm_context_t** ctxp, const char* moddata, uint32_t return jar_xm_create_context_safe(ctxp, moddata, SIZE_MAX, rate); } +#ifdef ALIGN +#undef ALIGN +#endif + #define ALIGN(x, b) (((x) + ((b) - 1)) & ~((b) - 1)) #define ALIGN_PTR(x, b) (void*)(((uintptr_t)(x) + ((b) - 1)) & ~((b) - 1)) int jar_xm_create_context_safe(jar_xm_context_t** ctxp, const char* moddata, size_t moddata_length, uint32_t rate) {