libcdio-devel
[Top][All Lists]
Advanced

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

Re: [Libcdio-devel] Fix mmc_ll_cmds.c for use with MSVC compilers


From: Robert Fuller
Subject: Re: [Libcdio-devel] Fix mmc_ll_cmds.c for use with MSVC compilers
Date: Mon, 30 Jan 2012 09:53:18 -0500

On Sun, Jan 29, 2012 at 9:24 PM, Rocky Bernstein <address@hidden> wrote:
> On Sun, Jan 29, 2012 at 12:46 PM, Pete Batard <address@hidden> wrote:
>
>> This one is fairly straightforward, but I'll sent it to the list
>> nonetheless.
>>
>> The issue here is that when not compiling a C++, MSVC compilers do not
>> accept variables to be defined after code, and the MMC_CMD_SETUP() macro
>> does define a cdb variable.
>>
>
> Yes, the intention is have all declarations in a come before statements as
> C99 wants. So thanks. It is possible I'll merge this into trunk sooner than
> the rest.

I think you mean C89 or C90.  C99 added support for inter-mingled
statements and declarations.  This brings up an important point.  MSVC
does not support C99 and Microsoft has no stated plans to support it.
That was one reason I chose not to support MSVC in my own ripper.  I
was taking advantage of some C99 features and the trade-off of
removing them to support MSVC was not worth it, for my project.

Rob



reply via email to

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