diff options
author | Richard Hughes <richard@hughsie.com> | 2019-02-09 09:15:31 +0000 |
---|---|---|
committer | Richard Hughes <richard@hughsie.com> | 2019-02-09 09:20:29 +0000 |
commit | 33af24b609805fdc82a5a13c563764a5bd06a878 (patch) | |
tree | 14084c6ea2c8b020f4d6385d2ae261cb1afadb7f /libappstream-glib/as-agreement-private.h | |
parent | c2e35aae910a7b2ab0bdbad1401b0183be105e52 (diff) | |
download | appstream-glib-wip/hughsie/pragma-once.tar.gz |
Use '#pragma once' to avoid a lot of boilerplatewip/hughsie/pragma-once
Diffstat (limited to 'libappstream-glib/as-agreement-private.h')
-rw-r--r-- | libappstream-glib/as-agreement-private.h | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/libappstream-glib/as-agreement-private.h b/libappstream-glib/as-agreement-private.h index e5df83d..ebefb66 100644 --- a/libappstream-glib/as-agreement-private.h +++ b/libappstream-glib/as-agreement-private.h @@ -5,13 +5,12 @@ * SPDX-License-Identifier: LGPL-2.1+ */ +#pragma once + #if !defined (__APPSTREAM_GLIB_PRIVATE_H) && !defined (AS_COMPILATION) #error "Only <appstream-glib.h> can be included directly." #endif -#ifndef __AS_AGREEMENT_PRIVATE_H -#define __AS_AGREEMENT_PRIVATE_H - #include <glib-object.h> #include "as-agreement.h" @@ -28,5 +27,3 @@ gboolean as_agreement_node_parse (AsAgreement *agreement, GError **error); G_END_DECLS - -#endif /* __AS_AGREEMENT_PRIVATE_H */ |