From 4013cbd06becfbfbb63b9b524e5c41513f497929 Mon Sep 17 00:00:00 2001 From: "Andrew M. Kuchling" Date: Mon, 9 Sep 2002 12:10:00 +0000 Subject: [PATCH] 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 d74aa6a2775..88b15866079 100644 --- a/Lib/distutils/command/config.py +++ b/Lib/distutils/command/config.py @@ -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