[coreboot-gerrit] Patch set updated for coreboot: vendorcode/intel/.../uefi_types.h: Define __APPLE__ only if undefined

Martin Roth (martinroth@google.com) gerrit at coreboot.org
Mon Jan 18 02:17:34 CET 2016


Martin Roth (martinroth at google.com) just uploaded a new patch set to gerrit, which you can find at https://review.coreboot.org/13028

-gerrit

commit d29400d278c2086a0525c8fac685df5942ace5ee
Author: Martin Roth <martinroth at google.com>
Date:   Sun Jan 17 17:00:48 2016 -0700

    vendorcode/intel/.../uefi_types.h: Define __APPLE__ only if undefined
    
    If __APPLE__ is already defined, as it is when building under OS X,
    this broke the build.
    
    Change-Id: I36ca0d75424ed6164afd52138520374cfbe44bae
    Signed-off-by: Martin Roth <martinroth at google.com>
---
 src/vendorcode/intel/edk2/uefi_2.4/uefi_types.h | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/vendorcode/intel/edk2/uefi_2.4/uefi_types.h b/src/vendorcode/intel/edk2/uefi_2.4/uefi_types.h
index e68f8c9..f25c4ba 100644
--- a/src/vendorcode/intel/edk2/uefi_2.4/uefi_types.h
+++ b/src/vendorcode/intel/edk2/uefi_2.4/uefi_types.h
@@ -34,7 +34,10 @@ are permitted provided that the following conditions are met:
 //
 // Set the UEFI types and attributes
 //
+#ifndef __APPLE__
 #define __APPLE__ 0
+#endif
+
 #include <stdlib.h>
 #include <Uefi/UefiBaseType.h>
 #include <Pi/PiBootMode.h>



More information about the coreboot-gerrit mailing list