]> granicus.if.org Git - check/commitdiff
fix compiler warning: subunit header file not found
authorbrarcher <brarcher@64e312b2-a51f-0410-8e61-82d0ca0eb02a>
Tue, 6 Nov 2012 04:10:44 +0000 (04:10 +0000)
committerbrarcher <brarcher@64e312b2-a51f-0410-8e61-82d0ca0eb02a>
Tue, 6 Nov 2012 04:10:44 +0000 (04:10 +0000)
The code is using ENABLE_SUBUNIT to determine if subunit is available.
HAVE_SUBUNIT_CHILD_H is never defined. When subunit is used, its
header files are never found, causing a compiler warning. This commit
replaces the #if protecting the header to be consistent with the
rest of the code.

git-svn-id: svn+ssh://svn.code.sf.net/p/check/code/trunk@660 64e312b2-a51f-0410-8e61-82d0ca0eb02a

src/check_log.c

index 6af444e3db30a45b56db16b2c6fcebef6cb5916d..2bfee88256f5039f71adffaae49d06c513fdfa32 100644 (file)
@@ -23,7 +23,7 @@
 #include <stdlib.h>
 #include <stdio.h>
 #include <check.h>
-#if HAVE_SUBUNIT_CHILD_H
+#if ENABLE_SUBUNIT
 #include <subunit/child.h>
 #endif