diff options
author | Jürg Billeter <j@bitron.ch> | 2019-02-10 05:50:12 +0100 |
---|---|---|
committer | Richard Hughes <richard@hughsie.com> | 2019-02-10 06:45:21 +0000 |
commit | c77a7968137a4385024bf60880f786359f99188a (patch) | |
tree | 44e50a7587c2e01724e233078568fb0814f3f96d /libappstream-glib/as-store.h | |
parent | 87b7483e79c2dd416fc06d291a784530fa613dbd (diff) | |
download | appstream-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.h')
-rw-r--r-- | libappstream-glib/as-store.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libappstream-glib/as-store.h b/libappstream-glib/as-store.h index 1eb1acf..e775c71 100644 --- a/libappstream-glib/as-store.h +++ b/libappstream-glib/as-store.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 |