opensubscriber
   Find in this group all groups
 
Unknown more information…

l : libcdio-devel@gnu.org 30 January 2012 • 1:46AM -0500

[Libcdio-devel] Fix mmc_ll_cmds.c for use with MSVC compilers
by Pete Batard

REPLY TO AUTHOR
 
REPLY TO GROUP




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.

Moving the macro to only occur after the variable definition block
should be risk free, as the macros moved do not reuse any variable that
may be uninitialized (besides, it's really a variable init macro, so it
should probably intervene at the top always).

There's an additional bunch of minor MSVC related patches that I'm not
planning to send or mention to the list as they are minor. Please see
http://git.savannah.gnu.org/gitweb/?p=libcdio.git;a=shortlog;h=refs/heads/pbatard
for details.

With this out of the way, MSVC support should now be smooth sailing (I
have already tested the remaining patches for MSVC, but they need a bit
of cleanup).

Regards,

/Pete




Bookmark with:

Delicious   Digg   reddit   Facebook   StumbleUpon

Related Messages

opensubscriber is not affiliated with the authors of this message nor responsible for its content.