[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 0/2] Modernize header checks
From: |
Peter Rosin |
Subject: |
Re: [PATCH 0/2] Modernize header checks |
Date: |
Sat, 01 Jun 2013 07:58:52 +0200 |
User-agent: |
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20130509 Thunderbird/17.0.6 |
On 2013-06-01 00:06, Russ Allbery wrote:
> Peter Rosin <address@hidden> writes:
>> On 2013-05-31 19:19, Eric Blake wrote:
>
>>> That said, would it hurt if autoconf just unconditionally defined the
>>> macros that were previously conditionally defined by a probe, so that
>>> code that was relying on HAVE_STRINGS_H instead of blind inclusion will
>>> still compile?
>
>> How would one do to be portable to both "some versions of FreeBSD" and
>> MSVC, then? (MSVC 10 also lacks strings.h, btw) One camp needs
>> HAVE_STRINGS_H to be defined and one needs to not have it defined.
>> Sounds evil to unconditionally define it under those circumstances. Or
>> have I misunderstood something?
>
> Autoconf doesn't work with MSVC directly so far as I know. All of the
> packages I have that are ported to MSVC have a separate hand-written
> config.h that's used for MSVC builds, and in that file one simply doesn't
> define HAVE_STRINGS_H.
What do you mean directly? MSYS can drive a build using MSVC as toolchain
(instead of MinGW) just fine. I do it all the time.
Cheers,
Peter
- Re: [PATCH 0/2] Modernize header checks,
Peter Rosin <=