summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tests/Makefile.am6
-rw-r--r--tests/gitestmacros.h10
2 files changed, 14 insertions, 2 deletions
diff --git a/tests/Makefile.am b/tests/Makefile.am
index 26b59108..8bcf74ee 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -14,7 +14,8 @@ tests_DATA = \
everything.c \
everything.h \
gimarshallingtests.c \
- gimarshallingtests.h
+ gimarshallingtests.h \
+ gitestmacros.h
EXTRA_LTLIBRARIES = libeverything-1.0.la libgimarshallingtests-1.0.la
@@ -23,7 +24,8 @@ libgimarshallingtests_1_0_la_SOURCES = gimarshallingtests.c
EXTRA_DIST += \
gimarshallingtests.h \
- gi-tester
+ gi-tester \
+ gitestmacros.h
BUILT_SOURCES += everything.c everything.h
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