Browse Source

Add C++ extern C header markers

Signed-off-by: Callum Farmer <gmbr3@opensuse.org>
Callum Farmer 1 year ago
parent
commit
5e85f477fb
2 changed files with 16 additions and 0 deletions
  1. 8 0
      inc/efi.h
  2. 8 0
      inc/efilib.h

+ 8 - 0
inc/efi.h

@@ -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

+ 8 - 0
inc/efilib.h

@@ -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