Author:
davidbuzz@gmail.com
I just thought I'd pass along a patch that allows libcdaudio to
compile on MS-WINDOWS! :-) Yay!
I build these while developing a Mythtv port for windows, which now
works! (see http://www.mythtv.org/wiki/index.php/Windows_Port if
interested )
Mythtv relies on the CDDB functionality in the libcdaudio package, and
so I saw value in making this work on windows.
Most of the patch (attached) simply consists of re-aranging the
headers to work with what windows has, and of #ifdef-ing out all the
partsof the code that don't immediately run on windows, and replacing
them with a null function. the result is that things like ejecting a
cd, and reading from the cd won't work... but CDDB should be fine.
I've tried to make sure that other platforms are unaffected by the
changes, and it will be easy to add windows specific functionality in
the future.
Thanks, and I hope that these (or something like them ) will make it
into you release. If you need me to do windows compiles of any
future pre-releases, please let me know, as I'm glad to.
Thanks,
Buzz.
PS. I got a bit carried away with cut-n-paste of a bunch of #defines
in compat.h (causing the patch to lok bigger), but these are harmless,
and may com in valuable if someone is implementing full win32
functionality in the future.
patch to add support for building on MS-WINDOWS (aka Win32)