[vte] all: Use pragma once



commit ef4e6b2cdc2481f7d1bb9391f4203826f2e27805
Author: Christian Persch <chpe src gnome org>
Date:   Sat Nov 14 22:50:15 2020 +0100

    all: Use pragma once

 src/vtetypebuiltins.h.template | 7 ++-----
 src/vteutils.h                 | 9 +--------
 2 files changed, 3 insertions(+), 13 deletions(-)
---
diff --git a/src/vtetypebuiltins.h.template b/src/vtetypebuiltins.h.template
index 3f7b9dc3..8f868b32 100644
--- a/src/vtetypebuiltins.h.template
+++ b/src/vtetypebuiltins.h.template
@@ -1,11 +1,10 @@
 /*** BEGIN file-header ***/
+#pragma once
+
 #if !defined (__VTE_VTE_H_INSIDE__) && !defined (VTE_COMPILATION)
 #error "Only <vte/vte.h> can be included directly."
 #endif
 
-#ifndef __VTE_VTE_TYPE_BUILTINS_H__
-#define __VTE_VTE_TYPE_BUILTINS_H__
-
 #include <glib-object.h>
 
 #include "vtemacros.h"
@@ -26,6 +25,4 @@ GType @enum_name@_get_type (void);
 
 /*** BEGIN file-tail ***/
 G_END_DECLS
-
-#endif /* __VTE_VTE_TYPE_BUILTINS_H__ */
 /*** END file-tail ***/
diff --git a/src/vteutils.h b/src/vteutils.h
index 999e3bf9..d37f8d50 100644
--- a/src/vteutils.h
+++ b/src/vteutils.h
@@ -16,15 +16,8 @@
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
  */
 
-#ifndef __VTE_UTILS_H__
-#define __VTE_UTILS_H__
+#pragma once
 
 #include <glib.h>
 
-G_BEGIN_DECLS
-
 int _vte_mkstemp (void);
-
-G_END_DECLS
-
-#endif /* __VTE_UTILS_H__ */


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]