Signed-off-by: Callum Farmer <gmbr3@opensuse.org>
@@ -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"
+}
#endif
@@ -19,6 +19,10 @@ Revision History
--*/
#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))