[Top][All Lists]

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

Re: [3/11] Native MSVC support (msvc-cwrapper)

From: Bob Friesenhahn
Subject: Re: [3/11] Native MSVC support (msvc-cwrapper)
Date: Thu, 19 Jul 2007 18:16:40 -0500 (CDT)

On Thu, 19 Jul 2007, Charles Wilson wrote:

I don't mind the patch going in, but isn't
  +# define _stat stat

the wrong way around, or at least superfluous?

You're right, it is the wrong way around. I would suspect also that if it compiles as-is under MSVC, then it is unnecessary. However, from reading the msdn docs, it seems that the correct define:

# define stat _stat

In Visual Studio 2005 and later, Microsoft has deprecated the POSIX and ANSI C standard library interfaces, as well as some ANSI C++ interfaces. They won't be deleted just yet but all POSIX calls are supposed to be referred to using the Microsoft standards-compliant underscore prefix.

Since Microsoft Windows is the clear market leader, and the Microsoft .net environment is now an ISO-recognized standard, there is little need for the ANSI or POSIX APIs any more.

Bob Friesenhahn
GraphicsMagick Maintainer,

reply via email to

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