summaryrefslogtreecommitdiff
path: root/tests/scanner/regress.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2014-10-10 11:36:23 -0400
committerMatthias Clasen <mclasen@redhat.com>2014-10-10 11:36:23 -0400
commit578eebd54bd9f2b1677922680701c454f489c895 (patch)
treef453c92ac1c1d687c3d8bf1350d2197e5d6a88a4 /tests/scanner/regress.c
parent1d8d206f48145623cd79a6d6d00bfeb12f73c0da (diff)
downloadgobject-introspection-578eebd54bd9f2b1677922680701c454f489c895.tar.gz
Don't unconditionally include config.h in regress.c
This is an installed file, so we can't assume that config.h will be around. https://bugzilla.gnome.org/show_bug.cgi?id=737275
Diffstat (limited to 'tests/scanner/regress.c')
-rw-r--r--tests/scanner/regress.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/scanner/regress.c b/tests/scanner/regress.c
index 3d3cfdde..8a0652fc 100644
--- a/tests/scanner/regress.c
+++ b/tests/scanner/regress.c
@@ -1,5 +1,8 @@
/* -*- 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 <string.h>
#include <stdlib.h>