[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[Libguestfs] [PATCH] allow use of #if HAVE_CONFIG_H, for example code



Adding the #if HAVE_CONFIG_H triggers a syntax-check rule.
This exempts those two example files.

>From c498ad1fea5a8ca7783a24929b472756f45c57a0 Mon Sep 17 00:00:00 2001
From: Jim Meyering <meyering redhat com>
Date: Mon, 3 Aug 2009 11:09:13 -0400
Subject: [PATCH] allow use of #if HAVE_CONFIG_H, for example code

* .x-sc_prohibit_have_config_h: New file, to exempt examples.
---
 .x-sc_prohibit_have_config_h |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
 create mode 100644 .x-sc_prohibit_have_config_h

diff --git a/.x-sc_prohibit_have_config_h b/.x-sc_prohibit_have_config_h
new file mode 100644
index 0000000..e1d94fe
--- /dev/null
+++ b/.x-sc_prohibit_have_config_h
@@ -0,0 +1,2 @@
+^examples/hello.c
+^examples/to-xml.c
--
1.6.4.212.g4719


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]