summaryrefslogtreecommitdiff
path: root/tests/gitestmacros.h
diff options
context:
space:
mode:
authorChun-wei Fan <fanchunwei@src.gnome.org>2014-08-12 11:42:25 +0800
committerChun-wei Fan <fanchunwei@src.gnome.org>2014-08-15 09:43:22 +0800
commit4bfe7f1da88c6bd73cc51666a13840661ab9edb1 (patch)
tree3b1f24dbb162af25cedb12d511fc1929ab74a940 /tests/gitestmacros.h
parent6fc4a1f9db8a2149d8db55e578895b73af44d930 (diff)
downloadgobject-introspection-4bfe7f1da88c6bd73cc51666a13840661ab9edb1.tar.gz
tests: Add a Header for Symbol Exporting
This adds a header under tests/ that can be included by the various test libraries/sources so that symbols from them can be decorated by a macro, which can then be used to export symbols by using a compiler directive, like the updates to girepository. This header is also installed as the test headers refer to them. https://bugzilla.gnome.org/show_bug.cgi?id=732669
Diffstat (limited to 'tests/gitestmacros.h')
-rw-r--r--tests/gitestmacros.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/gitestmacros.h b/tests/gitestmacros.h
new file mode 100644
index 00000000..527578d0
--- /dev/null
+++ b/tests/gitestmacros.h
@@ -0,0 +1,10 @@
+#ifndef __GITESTMACROS_H__
+#define __GITESTMACROS_H__
+
+#ifndef _GI_EXTERN
+#define _GI_EXTERN extern
+#endif
+
+#define _GI_TEST_EXTERN _GI_EXTERN
+
+#endif