summaryrefslogtreecommitdiff
path: root/libappstream-glib/as-ref-string.h
diff options
context:
space:
mode:
Diffstat (limited to 'libappstream-glib/as-ref-string.h')
-rw-r--r--libappstream-glib/as-ref-string.h7
1 files changed, 2 insertions, 5 deletions
diff --git a/libappstream-glib/as-ref-string.h b/libappstream-glib/as-ref-string.h
index 414afd1..397d5e5 100644
--- a/libappstream-glib/as-ref-string.h
+++ b/libappstream-glib/as-ref-string.h
@@ -5,13 +5,12 @@
* SPDX-License-Identifier: LGPL-2.1+
*/
+#pragma once
+
#if !defined (__APPSTREAM_GLIB_H) && !defined (AS_COMPILATION)
#error "Only <appstream-glib.h> can be included directly."
#endif
-#ifndef __AS_REF_STRING_H
-#define __AS_REF_STRING_H
-
#include <glib.h>
G_BEGIN_DECLS
@@ -57,5 +56,3 @@ AsRefString *as_ref_string_new_copy_with_length (const gchar *str,
G_DEFINE_AUTOPTR_CLEANUP_FUNC(AsRefString, as_ref_string_unref)
G_END_DECLS
-
-#endif /* __AS_REF_STRING_H */