Include an empty body when checking for a header file

(Bugfix candidate for 2.2, and likely 2.1 as well)
This commit is contained in:
Andrew M. Kuchling 2002-09-09 12:10:00 +00:00
parent 2412853f8e
commit 4013cbd06b
1 changed files with 2 additions and 1 deletions

View File

@ -346,7 +346,8 @@ class config (Command):
exists and can be found by the preprocessor; return true if so,
false otherwise.
"""
return self.try_cpp(headers=[header], include_dirs=include_dirs)
return self.try_cpp(body="/* No body */", headers=[header],
include_dirs=include_dirs)
# class config