diff options
author | Philip Chimento <philip.chimento@gmail.com> | 2019-08-14 18:13:08 -0700 |
---|---|---|
committer | Christoph Reiter <reiter.christoph@gmail.com> | 2019-08-15 14:19:18 +0000 |
commit | 1a66c3bf75df818a9ece62eba96e2eb3f7726138 (patch) | |
tree | 174d52ce16de512e6156bc4d5b3750c8720360d7 /tests/scanner/utility.c | |
parent | ba744068f2075dad4d5d3562c79034f23a6bb90a (diff) | |
download | gobject-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/utility.c')
-rw-r--r-- | tests/scanner/utility.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/scanner/utility.c b/tests/scanner/utility.c index c5e48a4e..3af374c1 100644 --- a/tests/scanner/utility.c +++ b/tests/scanner/utility.c @@ -1,5 +1,9 @@ /* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*- */ + +/* This file gets installed, so we can't assume config.h is available */ +#ifdef HAVE_CONFIG_H #include "config.h" +#endif #include "utility.h" |