summaryrefslogtreecommitdiff
path: root/gcr
diff options
context:
space:
mode:
authorStef Walter <stefw@gnome.org>2013-04-19 16:35:53 +0200
committerStef Walter <stefw@gnome.org>2013-04-19 16:35:53 +0200
commitc144d948f5817f9f0950ce1a6aa46239269740ab (patch)
treeff70ca346fee9ab694f2bc1d804198114714ec60 /gcr
parent8fcd7ce443aabe1f563ad6753af2cae4ee052cfd (diff)
gcr: Supress warnings when building gobject-introspection Gir files
Requires: https://bugzilla.gnome.org/show_bug.cgi?id=698367
Diffstat (limited to 'gcr')
-rw-r--r--gcr/gcr-base.h2
-rw-r--r--gcr/gcr-types.h13
2 files changed, 4 insertions, 11 deletions
diff --git a/gcr/gcr-base.h b/gcr/gcr-base.h
index 36c209b..b388e1d 100644
--- a/gcr/gcr-base.h
+++ b/gcr/gcr-base.h
@@ -21,9 +21,11 @@
* Author: Stef Walter <stefw@collabora.co.uk>
*/
+#ifndef __GI_SCANNER__
#ifndef GCR_API_SUBJECT_TO_CHANGE
#error <gcr/This API has not yet reached stability.>
#endif
+#endif
#ifndef __GCR_BASE_H__
#define __GCR_BASE_H__
diff --git a/gcr/gcr-types.h b/gcr/gcr-types.h
index e8a01c5..3c924df 100644
--- a/gcr/gcr-types.h
+++ b/gcr/gcr-types.h
@@ -32,19 +32,10 @@
#ifndef GCK_API_SUBJECT_TO_CHANGE
-/**
- * GCK_API_SUBJECT_TO_CHANGE: (skip)
- *
- * skip for gir introspection
- */
+#ifndef __GI_SCANNER__
#define GCK_API_SUBJECT_TO_CHANGE 1
-
-/**
- * __GCR_DEFINED_GCK_SUBJECT_TO_CHANGE__: (skip)
- *
- * skip for gir introspection
- */
#define __GCR_DEFINED_GCK_SUBJECT_TO_CHANGE__ 1
+#endif
#endif