summaryrefslogtreecommitdiff
path: root/libappstream-glib/as-store-cab.h
diff options
context:
space:
mode:
authorJürg Billeter <j@bitron.ch>2019-02-10 05:50:12 +0100
committerRichard Hughes <richard@hughsie.com>2019-02-10 06:45:21 +0000
commitc77a7968137a4385024bf60880f786359f99188a (patch)
tree44e50a7587c2e01724e233078568fb0814f3f96d /libappstream-glib/as-store-cab.h
parent87b7483e79c2dd416fc06d291a784530fa613dbd (diff)
downloadappstream-glib-c77a7968137a4385024bf60880f786359f99188a.tar.gz
Fix build of libappstream-glib clients
With '#pragma once', __APPSTREAM_GLIB_H is never defined. In file included from /usr/include/libappstream-glib/appstream-glib.h:35: /usr/include/libappstream-glib/as-utils.h:11:2: error: #error "Only <appstream-glib.h> can be included directly." #error "Only <appstream-glib.h> can be included directly." ^~~~~ Fixes: 87b7483e ("Use '#pragma once' to avoid a lot of boilerplate")
Diffstat (limited to 'libappstream-glib/as-store-cab.h')
-rw-r--r--libappstream-glib/as-store-cab.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/libappstream-glib/as-store-cab.h b/libappstream-glib/as-store-cab.h
index 2059678..ff931b1 100644
--- a/libappstream-glib/as-store-cab.h
+++ b/libappstream-glib/as-store-cab.h
@@ -7,7 +7,7 @@
#pragma once
-#if !defined (__APPSTREAM_GLIB_H) && !defined (AS_COMPILATION)
+#if !defined (__APPSTREAM_GLIB_H_INSIDE__) && !defined (AS_COMPILATION)
#error "Only <appstream-glib.h> can be included directly."
#endif