Fix build of clover-genconfig

This commit is contained in:
jief 2020-02-18 08:58:56 +03:00
parent f0553398b1
commit 15c1c82a6d
3 changed files with 15 additions and 0 deletions

View File

@ -55,11 +55,13 @@ extern "C" {
#include <IndustryStandard/Bmp.h>
#include <IndustryStandard/HdaCodec.h>
#include <Protocol/PciIo.h>
#include <Protocol/AudioIo.h>
#include <Protocol/Cpu.h>
#include <Protocol/CpuIo.h>
#include <Protocol/DataHub.h>
#include <Protocol/DevicePathToText.h>
#include <Protocol/EdidDiscovered.h>
#include <Protocol/EdidOverride.h>
#include <Protocol/FrameworkHii.h>
#include <Protocol/HdaIo.h>
@ -76,7 +78,9 @@ extern "C" {
#include <Protocol/AppleSMC.h>
#include <Protocol/AppleImageCodecProtocol.h>
#ifdef __cplusplus
}
#endif
#include "../refit/lib.h"
#include "string.h"

View File

@ -37,7 +37,10 @@
#ifndef __LIBEG_LIBEG_H__
#define __LIBEG_LIBEG_H__
#ifdef __cplusplus
extern "C" {
#endif
#include <PiDxe.h>
#include <Base.h>
#include <Uefi.h>
@ -133,7 +136,9 @@ extern "C" {
#include <IndustryStandard/Atapi.h>
#include <IndustryStandard/AppleSmBios.h>
#ifdef __cplusplus
} // extern "C"
#endif
/* types */

View File

@ -73,14 +73,20 @@
#define Print if ((!GlobalConfig.Quiet) || (GlobalConfig.TextOnly)) Print
//#include "GenericBdsLib.h"
#ifdef __cplusplus
extern "C" {
#endif
extern EFI_HANDLE gImageHandle;
extern EFI_SYSTEM_TABLE* gST;
extern EFI_BOOT_SERVICES* gBS;
extern EFI_RUNTIME_SERVICES* gRT;
#include <Protocol/SimpleFileSystem.h>
#ifdef __cplusplus
}
#endif
#define TAG_ABOUT (1)
#define TAG_RESET (2)