bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: malloc.m4 should treat mingw like posix


From: Eric Blake
Subject: Re: malloc.m4 should treat mingw like posix
Date: Thu, 15 Nov 2007 23:02:17 +0000 (UTC)
User-agent: Loom/3.14 (http://gmane.org/)

Sam Steingold <sds <at> gnu.org> writes:

> mingw should be treated just like cygwin.

Really?  They use very different implementations; my understanding (although it 
may be limited, since I don't follow mingw development) is that mingw defers to 
the Microsoft malloc, and I'm not convinced that errno is handled properly in 
mingw, nor that malloc(0) allocates memory instead of acting as a no-op.  
Cygwin, on the other hand, uses its own malloc which does indeed meet the 
gnulib requirements.

Do you have a pointer into the MSDN pages or the mingw source code that can 
back up your claim, before we consider applying this patch?

> -        [#if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
> +        [#if (defined _WIN32 || defined __WIN32__) && ! (defined __CYGWIN__ 
|| defined __MINGW32__)

If mingw truly is POSIX compliant, does that leave any _WIN32 implementations 
which aren't?

-- 
Eric Blake







reply via email to

[Prev in Thread] Current Thread [Next in Thread]