[libpeas] Workaround gjs single-include issue
- From: Ryan Lortie <ryanl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libpeas] Workaround gjs single-include issue
- Date: Thu, 22 Nov 2012 03:31:34 +0000 (UTC)
commit 2307c53e037f781ab081f909a48c8f354c5ddf44
Author: Ryan Lortie <desrt desrt ca>
Date: Wed Nov 21 22:28:16 2012 -0500
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
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>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]