Complete.Org: Mailing Lists: Archives: freeciv-dev: July 2004:
[Freeciv-Dev] Re: (PR#9433) Patch: MSVC compile fixes
Home

[Freeciv-Dev] Re: (PR#9433) Patch: MSVC compile fixes

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: resqu@xxxxxx
Subject: [Freeciv-Dev] Re: (PR#9433) Patch: MSVC compile fixes
From: "Per I. Mathisen" <per@xxxxxxxxxxx>
Date: Tue, 20 Jul 2004 04:45:40 -0700
Reply-to: rt@xxxxxxxxxxx

<URL: http://rt.freeciv.org/Ticket/Display.html?id=9433 >

On Tue, 20 Jul 2004, res wrote:
> > Alloca is terrible. Dynamic array sizes are part of C99.  Are you sure
> > MSVC doesn't support it?
>
> Arrays are indded nicer, but the manual says: "Microsoft® C conforms to
> the standard for the C language as set forth in the 9899:1990 edition of
> the ANSI C standard." No C99. (Note: I'm speaking about VC7.0. Newer
> versions might have this support, but I don't know.)

http://msdn.microsoft.com/chats/vstudio/vstudio_022703.asp:
"In general, we have seen little demand for many C99 features. Some
features have more demand than others, and we will consider them in future
releases provided they are compatible with C++. It is more likely we'll
entertain C99 features if they are picked up in the next version of the
C++ standard."

So MSVC is a C++ compiler that sometimes can compile older C code. IIRC,
some new C99 features are not compatible with C++.

  - Per





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