summaryrefslogtreecommitdiff
path: root/tests/scanner/foo.c
diff options
context:
space:
mode:
authorPhilip Chimento <philip.chimento@gmail.com>2019-08-14 18:13:08 -0700
committerChristoph Reiter <reiter.christoph@gmail.com>2019-08-15 14:19:18 +0000
commit1a66c3bf75df818a9ece62eba96e2eb3f7726138 (patch)
tree174d52ce16de512e6156bc4d5b3750c8720360d7 /tests/scanner/foo.c
parentba744068f2075dad4d5d3562c79034f23a6bb90a (diff)
downloadgobject-introspection-1a66c3bf75df818a9ece62eba96e2eb3f7726138.tar.gz
tests: Don't include "config.h" in installed files
These tests get installed, so config.h may not be available. Do the same thing that gimarshallingtests.c and regress.c already do, and include config.h conditionally.
Diffstat (limited to 'tests/scanner/foo.c')
-rw-r--r--tests/scanner/foo.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/scanner/foo.c b/tests/scanner/foo.c
index 2fc8ed9e..19bf848b 100644
--- a/tests/scanner/foo.c
+++ b/tests/scanner/foo.c
@@ -1,4 +1,7 @@
+/* This file gets installed, so we can't assume config.h is available */
+#ifdef HAVE_CONFIG_H
#include "config.h"
+#endif
#include "foo.h"