summaryrefslogtreecommitdiff
path: root/libappstream-glib/as-require-private.h
diff options
context:
space:
mode:
authorRichard Hughes <richard@hughsie.com>2019-02-09 09:15:31 +0000
committerRichard Hughes <richard@hughsie.com>2019-02-09 17:33:43 +0000
commit87b7483e79c2dd416fc06d291a784530fa613dbd (patch)
tree14084c6ea2c8b020f4d6385d2ae261cb1afadb7f /libappstream-glib/as-require-private.h
parentbfd968046dbaf2580b0c9b7a073ea4caf43fd833 (diff)
downloadappstream-glib-87b7483e79c2dd416fc06d291a784530fa613dbd.tar.gz
Use '#pragma once' to avoid a lot of boilerplate
Diffstat (limited to 'libappstream-glib/as-require-private.h')
-rw-r--r--libappstream-glib/as-require-private.h7
1 files changed, 2 insertions, 5 deletions
diff --git a/libappstream-glib/as-require-private.h b/libappstream-glib/as-require-private.h
index b03f379..2a5f119 100644
--- a/libappstream-glib/as-require-private.h
+++ b/libappstream-glib/as-require-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_REQUIRE_PRIVATE_H
-#define __AS_REQUIRE_PRIVATE_H
-
#include "as-require.h"
#include "as-node-private.h"
@@ -30,5 +29,3 @@ gboolean as_require_node_parse_dep11 (AsRequire *require,
GError **error);
G_END_DECLS
-
-#endif /* __AS_REQUIRE_PRIVATE_H */