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