]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
backport akuchling's checkin of
authorMichael W. Hudson <mwh@python.net>
Tue, 24 Sep 2002 11:22:28 +0000 (11:22 +0000)
committerMichael W. Hudson <mwh@python.net>
Tue, 24 Sep 2002 11:22:28 +0000 (11:22 +0000)
    revision 1.12 of config.py

Include an empty body when checking for a header file

(Bugfix candidate for 2.2, and likely 2.1 as well)

Lib/distutils/command/config.py

index 27c2cc15125e453bdbade34b2092774b7e5776a2..1c37ede5126e05d891ffe0d9dcd9ca6100a0bc53 100644 (file)
@@ -348,7 +348,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