summaryrefslogtreecommitdiffstats
path: root/BaseTools
diff options
context:
space:
mode:
authorMike Beaton <mjsbeaton@gmail.com>2024-04-06 23:03:36 +0100
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>2024-09-27 16:57:36 +0000
commitcc47e8270375e0254ab7aafadcfde4eec9e01119 (patch)
tree8cec81b03996ddafb8904e12c2dbfa67d9f57a42 /BaseTools
parentded3ae2cf4ba974313f8ab043f610b1e6d3ddcdc (diff)
downloadedk2-cc47e8270375e0254ab7aafadcfde4eec9e01119.tar.gz
edk2-cc47e8270375e0254ab7aafadcfde4eec9e01119.tar.bz2
edk2-cc47e8270375e0254ab7aafadcfde4eec9e01119.zip
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>
Diffstat (limited to 'BaseTools')
-rw-r--r--BaseTools/Source/C/Common/Decompress.c2
1 files changed, 2 insertions, 0 deletions
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