[gnome-builder] meson-templates: use #pragma once for version.h.in
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] meson-templates: use #pragma once for version.h.in
- Date: Thu, 23 Jan 2020 21:32:58 +0000 (UTC)
commit 135a5d4e8e07756ea93c59e2f5031ce158eca1a6
Author: Christian Hergert <chergert redhat com>
Date: Thu Jan 23 13:32:50 2020 -0800
meson-templates: use #pragma once for version.h.in
src/plugins/meson-templates/resources/src/hello-version.h.in | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
---
diff --git a/src/plugins/meson-templates/resources/src/hello-version.h.in
b/src/plugins/meson-templates/resources/src/hello-version.h.in
index d7d198eff..48ac47db1 100644
--- a/src/plugins/meson-templates/resources/src/hello-version.h.in
+++ b/src/plugins/meson-templates/resources/src/hello-version.h.in
@@ -1,7 +1,6 @@
{{include "license.h"}}
-#ifndef {{NAME}}_VERSION_H
-#define {{NAME}}_VERSION_H
+#pragma once
#if !defined({{NAME}}_INSIDE) && !defined({{NAME}}_COMPILATION)
# error "Only <{{name}}.h> can be included directly."
@@ -77,5 +76,3 @@
({{PREFIX}}_MAJOR_VERSION == (major) && {{PREFIX}}_MINOR_VERSION > (minor)) || \
({{PREFIX}}_MAJOR_VERSION == (major) && {{PREFIX}}_MINOR_VERSION == (minor) && \
{{PREFIX}}_MICRO_VERSION >= (micro)))
-
-#endif /* {{NAME}}_VERSION_H */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]