diff mbox series

[edk2,6/6] BaseTools/CommonLib: drop definition of MAX_UINTN

Message ID 20181129123129.25095-7-ard.biesheuvel@linaro.org
State Superseded
Headers show
Series BaseTools: get rid of MAX_UINTN | expand

Commit Message

Ard Biesheuvel Nov. 29, 2018, 12:31 p.m. UTC
The maximum value that can be represented by the native word size
of the *target* should be irrelevant when compiling tools that
run on the build *host*. So drop the definition of MAX_UINTN, now
that we no longer use it.

Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>

---
 BaseTools/Source/C/Common/CommonLib.h | 1 -
 1 file changed, 1 deletion(-)

-- 
2.19.1

_______________________________________________
edk2-devel mailing list
edk2-devel@lists.01.org
https://lists.01.org/mailman/listinfo/edk2-devel

Comments

Carsey, Jaben Nov. 29, 2018, 3:18 p.m. UTC | #1
Reviewed-by: Jaben Carsey <jaben.carsey@intel.com>


> -----Original Message-----

> From: edk2-devel [mailto:edk2-devel-bounces@lists.01.org] On Behalf Of

> Ard Biesheuvel

> Sent: Thursday, November 29, 2018 4:31 AM

> To: edk2-devel@lists.01.org

> Cc: Laszlo Ersek <lersek@redhat.com>; Gao, Liming <liming.gao@intel.com>

> Subject: [edk2] [PATCH 6/6] BaseTools/CommonLib: drop definition of

> MAX_UINTN

> 

> The maximum value that can be represented by the native word size

> of the *target* should be irrelevant when compiling tools that

> run on the build *host*. So drop the definition of MAX_UINTN, now

> that we no longer use it.

> 

> Contributed-under: TianoCore Contribution Agreement 1.1

> Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>

> ---

>  BaseTools/Source/C/Common/CommonLib.h | 1 -

>  1 file changed, 1 deletion(-)

> 

> diff --git a/BaseTools/Source/C/Common/CommonLib.h

> b/BaseTools/Source/C/Common/CommonLib.h

> index 6930d9227b87..b1c6c00a3478 100644

> --- a/BaseTools/Source/C/Common/CommonLib.h

> +++ b/BaseTools/Source/C/Common/CommonLib.h

> @@ -22,7 +22,6 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY

> KIND, EITHER EXPRESS OR IMPLIED.

> 

>  #define MAX_LONG_FILE_PATH 500

> 

> -#define MAX_UINTN MAX_ADDRESS

>  #define MAX_UINT64 ((UINT64)0xFFFFFFFFFFFFFFFFULL)

>  #define MAX_UINT16  ((UINT16)0xFFFF)

>  #define MAX_UINT8   ((UINT8)0xFF)

> --

> 2.19.1

> 

> _______________________________________________

> edk2-devel mailing list

> edk2-devel@lists.01.org

> https://lists.01.org/mailman/listinfo/edk2-devel

_______________________________________________
edk2-devel mailing list
edk2-devel@lists.01.org
https://lists.01.org/mailman/listinfo/edk2-devel
diff mbox series

Patch

diff --git a/BaseTools/Source/C/Common/CommonLib.h b/BaseTools/Source/C/Common/CommonLib.h
index 6930d9227b87..b1c6c00a3478 100644
--- a/BaseTools/Source/C/Common/CommonLib.h
+++ b/BaseTools/Source/C/Common/CommonLib.h
@@ -22,7 +22,6 @@  WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
 
 #define MAX_LONG_FILE_PATH 500
 
-#define MAX_UINTN MAX_ADDRESS
 #define MAX_UINT64 ((UINT64)0xFFFFFFFFFFFFFFFFULL)
 #define MAX_UINT16  ((UINT16)0xFFFF)
 #define MAX_UINT8   ((UINT8)0xFF)