diff --git a/SDK/INC/CRT/stdarg.h b/SDK/INC/CRT/stdarg.h index 777dbb7..c576a60 100644 --- a/SDK/INC/CRT/stdarg.h +++ b/SDK/INC/CRT/stdarg.h @@ -18,7 +18,7 @@ Abstract: #ifndef _STDARG_H #define _STDARG_H 1 -#ifdef __cplusplus +#if defined(__cplusplus) extern "C" { #endif @@ -29,7 +29,7 @@ typedef __builtin_va_list va_list; #define va_copy(ap, s) __builtin_va_copy(ap, s) #define va_end(ap) __builtin_va_end(ap) -#ifdef __cplusplus +#if defined(__cplusplus) } #endif diff --git a/SDK/INC/CRT/stddef.h b/SDK/INC/CRT/stddef.h index a4257bc..cad1336 100644 --- a/SDK/INC/CRT/stddef.h +++ b/SDK/INC/CRT/stddef.h @@ -18,7 +18,7 @@ Abstract: #ifndef _STDDEF_H #define _STDDEF_H 1 -#ifdef __cplusplus +#if defined(__cplusplus) extern "C" { #endif @@ -34,7 +34,7 @@ extern "C" { #ifndef _SIZE_T_DEFINED #define _SIZE_T_DEFINED -#ifdef _WIN64 +#if defined(_WIN64) typedef unsigned __int64 size_t; #else typedef unsigned int size_t; @@ -43,7 +43,7 @@ typedef unsigned int size_t; #ifndef _PTRDIFF_T_DEFINED #define _PTRDIFF_T_DEFINED -#ifdef _WIN64 +#if defined(_WIN64) typedef __int64 ptrdiff_t; #else typedef long int ptrdiff_t; @@ -57,7 +57,7 @@ typedef unsigned short wchar_t; #define offsetof(type, member) __builtin_offsetof(type, member) -#ifdef __cplusplus +#if defined(__cplusplus) } #endif diff --git a/SDK/INC/CRT/string.h b/SDK/INC/CRT/string.h index e521160..2e0a860 100644 --- a/SDK/INC/CRT/string.h +++ b/SDK/INC/CRT/string.h @@ -20,7 +20,7 @@ Abstract: #include -#ifdef __cplusplus +#if defined(__cplusplus) extern "C" { #endif @@ -35,7 +35,7 @@ int strncmp(const char *s1, const char *s2, size_t n); char *strchr(const char *s, int c); char *strstr(const char *haystack, const char *needle); -#ifdef __cplusplus +#if defined(__cplusplus) } #endif diff --git a/SDK/INC/CRT/wchar.h b/SDK/INC/CRT/wchar.h index 7752427..de2de08 100644 --- a/SDK/INC/CRT/wchar.h +++ b/SDK/INC/CRT/wchar.h @@ -21,7 +21,7 @@ Abstract: #include #include -#ifdef __cplusplus +#if defined(__cplusplus) extern "C" { #endif @@ -40,7 +40,7 @@ wchar_t *wcscat_s(wchar_t *dest, size_t maxlen, const wchar_t *src); int vswprintf(wchar_t *wcs, size_t maxlen, const wchar_t *format, va_list args); -#ifdef __cplusplus +#if defined(__cplusplus) } #endif diff --git a/SDK/INC/EFI/X64/efibind.h b/SDK/INC/EFI/X64/efibind.h index e33c42b..396bd9e 100644 --- a/SDK/INC/EFI/X64/efibind.h +++ b/SDK/INC/EFI/X64/efibind.h @@ -13,6 +13,8 @@ Abstract: --*/ +#pragma once + #ifndef _EFIBIND_H #define _EFIBIND_H @@ -20,7 +22,7 @@ Abstract: // Calling conventions. // #ifndef EFIAPI - #if defined(_MSC_EXTENSIONS) + #if defined_(MSC_EXTENSIONS) #define EFIAPI __cdecl #elif defined(__clang__) || defined(__GNUC__) #define EFIAPI __attribute__((ms_abi)) diff --git a/SDK/INC/EFI/efi.h b/SDK/INC/EFI/efi.h index 19943ea..ffefadd 100644 --- a/SDK/INC/EFI/efi.h +++ b/SDK/INC/EFI/efi.h @@ -13,6 +13,8 @@ Abstract: --*/ +#pragma once + #ifndef _EFI_H #define _EFI_H diff --git a/SDK/INC/EFI/efiapi.h b/SDK/INC/EFI/efiapi.h index 0325c7e..628f20c 100644 --- a/SDK/INC/EFI/efiapi.h +++ b/SDK/INC/EFI/efiapi.h @@ -13,6 +13,8 @@ Abstract: --*/ +#pragma once + #ifndef _EFIAPI_H #define _EFIAPI_H diff --git a/SDK/INC/EFI/eficon.h b/SDK/INC/EFI/eficon.h index dcd799b..d844ab2 100644 --- a/SDK/INC/EFI/eficon.h +++ b/SDK/INC/EFI/eficon.h @@ -13,6 +13,8 @@ Abstract: --*/ +#pragma once + #ifndef _EFICON_H #define _EFICON_H diff --git a/SDK/INC/EFI/efidef.h b/SDK/INC/EFI/efidef.h index f5fd443..5ebe290 100644 --- a/SDK/INC/EFI/efidef.h +++ b/SDK/INC/EFI/efidef.h @@ -13,6 +13,8 @@ Abstract: --*/ +#pragma once + #ifndef _EFIDEF_H #define _EFIDEF_H diff --git a/SDK/INC/EFI/efidevp.h b/SDK/INC/EFI/efidevp.h index 9599a4b..05311b1 100644 --- a/SDK/INC/EFI/efidevp.h +++ b/SDK/INC/EFI/efidevp.h @@ -13,6 +13,8 @@ Abstract: --*/ +#pragma once + #ifndef _EFIDEVP_H #define _EFIDEVP_H diff --git a/SDK/INC/EFI/efierr.h b/SDK/INC/EFI/efierr.h index b6ec05b..8b542a6 100644 --- a/SDK/INC/EFI/efierr.h +++ b/SDK/INC/EFI/efierr.h @@ -13,6 +13,8 @@ Abstract: --*/ +#pragma once + #ifndef _EFIERR_H #define _EFIERR_H diff --git a/SDK/INC/EFI/efiprot.h b/SDK/INC/EFI/efiprot.h index 0caf7cd..fae9abf 100644 --- a/SDK/INC/EFI/efiprot.h +++ b/SDK/INC/EFI/efiprot.h @@ -13,6 +13,8 @@ Abstract: --*/ +#pragma once + #ifndef _EFIPROT_H #define _EFIPROT_H diff --git a/SDK/INC/NT/guiddef.h b/SDK/INC/NT/guiddef.h index 637fe89..e85efe7 100644 --- a/SDK/INC/NT/guiddef.h +++ b/SDK/INC/NT/guiddef.h @@ -13,6 +13,8 @@ Abstract: --*/ +#pragma once + #ifndef _GUIDDEF_H #define _GUIDDEF_H diff --git a/SDK/INC/NT/nt.h b/SDK/INC/NT/nt.h index 8acc0e7..faefec3 100644 --- a/SDK/INC/NT/nt.h +++ b/SDK/INC/NT/nt.h @@ -13,6 +13,8 @@ Abstract: --*/ +#pragma once + #ifndef _NT_H #define _NT_H diff --git a/SDK/INC/NT/ntdef.h b/SDK/INC/NT/ntdef.h index 25b707f..b5d21f9 100644 --- a/SDK/INC/NT/ntdef.h +++ b/SDK/INC/NT/ntdef.h @@ -13,6 +13,8 @@ Abstract: --*/ +#pragma once + #ifndef _NTDEF_H #define _NTDEF_H @@ -144,7 +146,7 @@ typedef UCHAR BOOLEAN; // // Numeric pointer types. // -#ifdef _WIN64 +#if defined(_WIN64) typedef LONGLONG LONG_PTR; typedef ULONGLONG ULONG_PTR; #else diff --git a/SDK/INC/NT/ntimage.h b/SDK/INC/NT/ntimage.h index 10b49db..672150d 100644 --- a/SDK/INC/NT/ntimage.h +++ b/SDK/INC/NT/ntimage.h @@ -13,6 +13,8 @@ Abstract: --*/ +#pragma once + #ifndef _NTIMAGE_H #define _NTIMAGE_H diff --git a/SDK/INC/NT/ntrtl.h b/SDK/INC/NT/ntrtl.h index 1f1581a..5bf1f3e 100644 --- a/SDK/INC/NT/ntrtl.h +++ b/SDK/INC/NT/ntrtl.h @@ -13,10 +13,12 @@ Abstract: --*/ +#pragma once + #ifndef _NTRTL_H #define _NTRTL_H -#ifdef __cplusplus +#if defined(__cplusplus) extern "C" { #endif @@ -204,7 +206,7 @@ RtlGUIDFromString ( OUT GUID *Guid ); -#ifdef __cplusplus +#if defined(__cplusplus) } #endif diff --git a/SDK/INC/NT/ntstatus.h b/SDK/INC/NT/ntstatus.h index 28f3fae..3c21280 100644 --- a/SDK/INC/NT/ntstatus.h +++ b/SDK/INC/NT/ntstatus.h @@ -13,6 +13,8 @@ Abstract: --*/ +#pragma once + #ifndef _NTSTATUS_H #define _NTSTATUS_H