https://git.reactos.org/?p=reactos.git;a=commitdiff;h=e387e246118446136eb9d…
commit e387e246118446136eb9d088dd327bb823274b97
Author: Joachim Henze <joachim.henze(a)reactos.org>
AuthorDate: Sun Jul 23 22:52:07 2023 +0200
Commit: GitHub <noreply(a)github.com>
CommitDate: Sun Jul 23 22:52:07 2023 +0200
[DMILIB][UDMIHELP] Favor pragma once (#5472)
---
sdk/lib/dmilib/dmilib.h | 6 +-----
sdk/lib/udmihelp/udmihelp.h | 5 +----
2 files changed, 2 insertions(+), 9 deletions(-)
diff --git a/sdk/lib/dmilib/dmilib.h b/sdk/lib/dmilib/dmilib.h
index 203352db57d..f59f8ce7966 100644
--- a/sdk/lib/dmilib/dmilib.h
+++ b/sdk/lib/dmilib/dmilib.h
@@ -1,13 +1,11 @@
/*
* PROJECT: ReactOS DMI/SMBIOS Library
* LICENSE: GPL - See COPYING in the top level directory
- * FILE: dmilib.h
* PURPOSE: SMBIOS table parsing functions
* PROGRAMMERS: Timo Kreuzer (timo.kreuzer(a)reactos.org)
*/
-#ifndef DMILIB_H
-#define DMILIB_H
+#pragma once
enum _ID_STRINGS
{
@@ -35,5 +33,3 @@ ParseSMBiosTables(
_In_reads_bytes_(TableSize) PVOID SMBiosTables,
_In_ ULONG TableSize,
_Inout_updates_(ID_STRINGS_MAX) PCHAR * Strings);
-
-#endif /* DMILIB_H */
diff --git a/sdk/lib/udmihelp/udmihelp.h b/sdk/lib/udmihelp/udmihelp.h
index 27652229d9e..265332d8f9c 100644
--- a/sdk/lib/udmihelp/udmihelp.h
+++ b/sdk/lib/udmihelp/udmihelp.h
@@ -5,8 +5,7 @@
* COPYRIGHT: Copyright 2018 Stanislav Motylkov
*/
-#ifndef UDMIHELP_H
-#define UDMIHELP_H
+#pragma once
#ifdef __cplusplus
extern "C" {
@@ -36,5 +35,3 @@ FreeSMBiosData(
#ifdef __cplusplus
} // extern "C"
#endif
-
-#endif /* UDMIHELP_H */