[gobject-introspection] Don't unconditionally include config.h in regress.c
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gobject-introspection] Don't unconditionally include config.h in regress.c
- Date: Fri, 10 Oct 2014 15:37:14 +0000 (UTC)
commit 578eebd54bd9f2b1677922680701c454f489c895
Author: Matthias Clasen <mclasen redhat com>
Date: Fri Oct 10 11:36:23 2014 -0400
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
tests/scanner/regress.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/tests/scanner/regress.c b/tests/scanner/regress.c
index 3d3cfdd..8a0652f 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>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]