Add C++ extern C header markers

Signed-off-by: Callum Farmer <gmbr3@opensuse.org>
This commit is contained in:
Callum Farmer 2023-06-13 12:46:50 +01:00
parent 53b89f528d
commit 5e85f477fb
2 changed files with 16 additions and 0 deletions

View file

@ -33,6 +33,10 @@ Revision History
#ifndef _EFI_INCLUDE_
#define _EFI_INCLUDE_
#ifdef __cplusplus
extern "C" {
#endif
#define EFI_FIRMWARE_VENDOR L"INTEL"
#define EFI_FIRMWARE_MAJOR_REVISION 12
#define EFI_FIRMWARE_MINOR_REVISION 33
@ -79,4 +83,8 @@ Revision History
#include "efipoint.h"
#include "efishell.h"
#ifdef __cplusplus
}
#endif
#endif

View file

@ -19,6 +19,10 @@ Revision History
--*/
#ifdef __cplusplus
extern "C" {
#endif
#include "efidebug.h"
#include "efipart.h"
#if defined(_M_X64) || defined(__x86_64__) || defined(__amd64__)
@ -1078,4 +1082,8 @@ extern EFI_DEVICE_IO_INTERFACE *GlobalIoFncs;
#define Port80(_PostCode) GlobalIoFncs->Io.Write (GlobalIoFncs, IO_UINT16, (UINT64)0x80, 1, &(_PostCode))
#ifdef __cplusplus
}
#endif
#endif