diff options
author | Ryan Lortie <desrt@desrt.ca> | 2012-11-21 22:28:16 -0500 |
---|---|---|
committer | Ryan Lortie <desrt@desrt.ca> | 2012-11-21 22:28:16 -0500 |
commit | 2307c53e037f781ab081f909a48c8f354c5ddf44 (patch) | |
tree | 06fb8aaa6583cdd4032173487f3a91c5f7d5a041 | |
parent | 773c252f16ee7c2f676cc79b21c782cd7faddede (diff) | |
download | libpeas-2307c53e037f781ab081f909a48c8f354c5ddf44.tar.gz |
Workaround gjs single-include issue
gjs features single-include guards for the headers in gjs/ with
gjs/gjs-module.h being the only header you are supposed to include.
Unfortunately, the headers in gi/ (which do not appear to have their own
master include file) individually include files from gjs/.
We can workaround the issue by first #include <gjs/gjs-module.h> which
will skip the single-include guard on the files the second time they get
included (from the headers in gi/).
https://bugzilla.gnome.org/show_bug.cgi?id=688617
-rw-r--r-- | loaders/gjs/peas-extension-gjs.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/loaders/gjs/peas-extension-gjs.c b/loaders/gjs/peas-extension-gjs.c index a813f38..2a71ff8 100644 --- a/loaders/gjs/peas-extension-gjs.c +++ b/loaders/gjs/peas-extension-gjs.c @@ -25,6 +25,7 @@ #include <string.h> +#include <gjs/gjs-module.h> #include <girepository.h> #include <gi/arg.h> #include <gi/value.h> |