https://git.reactos.org/?p=reactos.git;a=commitdiff;h=4ba8af9cae6e19d122faf…
commit 4ba8af9cae6e19d122faff294622530e16b561d3
Author: Sarthak Roy <sarthakroy2002(a)gmail.com>
AuthorDate: Mon Oct 2 03:28:32 2023 +0530
Commit: GitHub <noreply(a)github.com>
CommitDate: Mon Oct 2 00:58:32 2023 +0300
[CALC] Use pragma once for calc.h (#5754)
It's simpler and only needs to be included once at the beginning of the
header file. It generates an unique identifier for the file automatically,
so maintainers wouldn't need to choose unique names for the macros.
It will be helpful if any future refactoring takes place.
Signed-off-by: Sarthak Roy <sarthakroy2002(a)gmail.com>
---
base/applications/calc/calc.h | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/base/applications/calc/calc.h b/base/applications/calc/calc.h
index f6c2c7c8631..3af74cc3701 100644
--- a/base/applications/calc/calc.h
+++ b/base/applications/calc/calc.h
@@ -1,5 +1,4 @@
-#ifndef __CALC_H__
-#define __CALC_H__
+#pragma once
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
@@ -280,5 +279,3 @@ INT_PTR CALLBACK AboutDlgProc(HWND hWnd, UINT msg, WPARAM wp, LPARAM
lp);
void ConvExecute(HWND hWnd);
void ConvAdjust(HWND hWnd, int n_cat);
void ConvInit(HWND hWnd);
-
-#endif /* __CALC_H__ */