Subject: Re: bug#24506: Limit <config.h>’s includes

From: Andy Moreton <[email-masked]>
Date: Thu, 22 Sep 2016 18:26:19 +0100

On Thu 22 Sep 2016, Paul Eggert wrote:

> This follows up on recent problems with the fact that config.h
> includes stdlib.h etc.; some files need to include stdlib.h later.
> config.h generally should limit itself to includes that are
> universally safe; outside of MS-Windows, only stdbool.h makes
> the cut among the files currently included.  So, move the
> other includes to just the files that need them.

The check at the top of src/conf_post.h needs a minor fix:

#if defined DOS_NT && !defined DEFER_MS_W32_H

After that, it bootstraps on Windows using 64bit MSYS2 (gcc 6.2.0) and
appears to be functional.

    AndyM