]> granicus.if.org Git - python/commitdiff
Include an empty body when checking for a header file
authorAndrew M. Kuchling <amk@amk.ca>
Mon, 9 Sep 2002 12:10:00 +0000 (12:10 +0000)
committerAndrew M. Kuchling <amk@amk.ca>
Mon, 9 Sep 2002 12:10:00 +0000 (12:10 +0000)
(Bugfix candidate for 2.2, and likely 2.1 as well)

Lib/distutils/command/config.py

index d74aa6a27758b7c4c3d23d201e201e8124ab2569..88b15866079c262cdb0b163381aa70fc210c8a69 100644 (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