bug-gnulib
[Top][All Lists]

## Re: msvc-inval: more options

 From: Bastien ROUCARIES Subject: Re: msvc-inval: more options Date: Mon, 26 Sep 2011 10:59:17 +0200

On Mon, Sep 26, 2011 at 10:44 AM, Paolo Bonzini <address@hidden> wrote:
> On 09/26/2011 10:37 AM, Bastien ROUCARIES wrote:
>>
>> python
>> seehttp://svn.python.org/projects/python/trunk/Modules/posixmodule.c
>> seems to have solved a lot the maintenabilty stuff by determining the
>> actual size of the structure is determined at runtime.
>
> Still hackish, though slightly better.  What version of the CRT does MinGW
> use?  Can we assume VS 2005 or newer?

No mingw was compiled it seems with  0x0600 !!! However it do not
think we want to support win98 and we could locally on gnulib
#defining  __MSVCRT_VERSION__

>
>> Another option will be to include %SDK%\src\crt\internal.h and use
>> wrapper function. internal.h is needed for compiling openssl.
>
> I wouldn't be surprised if some SDK installation do not have it at all (e.g.
> if you install the C compiler from the DDK---which can also compile usermode
> applications) so I would rather not go that way.  Also, this would
> definitely not be usable from mingw.

We could do a two step stuf:
- use internal.h if available
- fallback to hacckish way

Bastien

> Paolo
>