From a748f064718c709e849ce7e239f0f5ed90e59abd Mon Sep 17 00:00:00 2001 From: "Michael W. Hudson" Date: Tue, 24 Sep 2002 11:22:28 +0000 Subject: [PATCH] backport akuchling's checkin of 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 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Lib/distutils/command/config.py b/Lib/distutils/command/config.py index 27c2cc15125e..1c37ede5126e 100644 --- a/Lib/distutils/command/config.py +++ b/Lib/distutils/command/config.py @@ -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 -- 2.47.3