From cc47e8270375e0254ab7aafadcfde4eec9e01119 Mon Sep 17 00:00:00 2001 From: Mike Beaton Date: Sat, 6 Apr 2024 23:03:36 +0100 Subject: BaseTools: Fix redefinition of UINT8_MAX in Decompress.c on XCODE5 This is part of a sequence of commits to restore build on the XCODE5 toolchain. The definition is required on other toolchains, but on XCODE5 results in a macro redefined error (from the existing value 255) from /usr/include/stdint.h. Signed-off-by: Mike Beaton --- BaseTools/Source/C/Common/Decompress.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'BaseTools') diff --git a/BaseTools/Source/C/Common/Decompress.c b/BaseTools/Source/C/Common/Decompress.c index 0f2bdbffa7..0cf0c4a0a8 100644 --- a/BaseTools/Source/C/Common/Decompress.c +++ b/BaseTools/Source/C/Common/Decompress.c @@ -15,7 +15,9 @@ SPDX-License-Identifier: BSD-2-Clause-Patent // // Decompression algorithm begins here // +#ifndef UINT8_MAX #define UINT8_MAX 0xff +#endif #define BITBUFSIZ 32 #define MAXMATCH 256 #define THRESHOLD 3 -- cgit v1.2.3