From: Sebastian Schuberth Date: Wed, 23 Sep 2009 09:44:02 GMT Subject: Re: Avoid declaration after statement Message-ID: <05f2bea5-0f74-4c89-9a84-d908a80bea20@h30g2000vbr.googlegroups.com> In-Reply-To: <213f3c7799721c3f42ffa689498175f0495048eb.1253088099.git.mstormo@gmail.com> > From: Frank Li > > MSVC does not understand this C99 style > > Signed-off-by: Frank Li > Signed-off-by: Marius Storm-Olsen Indeed, even in recent Visual Studio versions the C compiler only understands C90, not C99. Would it make sense to just force MSVC to compile *.c files with the C++ compiler to fix this, rather than patching files (which might be necessary for future files, too)? See the "/TP" command line option to "CL". -- Sebastian