audk/MdePkg
Rebecca Cran d6107c593b MdePkg: Update Base.h to be compliant with C11
With the introduction of the use of _Static_assert, edk2 requires a C11
compatible compiler. Update Include/Base.h to be compliant with C11.

As of C11, the maximum type of an enum is type `int`. Since the UEFI
Specification 2.3.1 Errata C allows either `int` or `unsigned int`, fix
the 32-bit enum check to use a signed int.

Since the UEFI 2.3 Specification only allowed signed int, update the
comment to reference 2.3.1 Errata C where the change was made to allow
unsigned int.

Signed-off-by: Rebecca Cran <rebecca@quicinc.com>
Reviewed-by: Michael D Kinney <michael.d.kinney@intel.com>
2023-03-17 17:55:48 +00:00
..
Include MdePkg: Update Base.h to be compliant with C11 2023-03-17 17:55:48 +00:00
Library MdePkg/BaseCacheMaintenanceLib: RISC-V: Fix InvalidateInstructionCacheRange 2023-03-16 15:47:40 +00:00
Test MdePkg/Test: Add port of BaseSafeIntLib unit tests to GoogleTest 2022-11-11 05:46:51 +00:00
MdeLibs.dsc.inc MdePkg/ArmTrngLib: Add NULL instance of Arm TRNG Library 2022-11-06 16:32:28 +00:00
MdePkg.ci.yaml MdePkg: Add Acpi65.h to IgnoreFiles area 2023-01-31 02:27:58 +00:00
MdePkg.dec MdePkg: Add Memory Attribute Protocol definition 2023-03-16 21:14:49 +00:00
MdePkg.dsc MdePkg: Add BaseRiscVSbiLib Library for RISC-V 2023-02-16 05:53:28 +00:00
MdePkg.uni MdePkg: Add PcdSpeculationBarrierType 2019-04-30 16:39:09 -07:00
MdePkgExtra.uni MdePkg: Replace BSD License with BSD+Patent License 2019-04-09 10:58:13 -07:00