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 <mjsbeaton@gmail.com>
This commit is contained in:
Mike Beaton 2024-04-06 23:03:36 +01:00 committed by mergify[bot]
parent ded3ae2cf4
commit cc47e82703

View File

@ -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