X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e8482f24cfc00645607f8526fde38d39e0dcaa63..31ad423e4fb556ec225a63b161154d3bf3445c1b:/contrib/src/mmedia/cdunix.cpp?ds=sidebyside diff --git a/contrib/src/mmedia/cdunix.cpp b/contrib/src/mmedia/cdunix.cpp index 5a8f42de61..936eeef4d2 100644 --- a/contrib/src/mmedia/cdunix.cpp +++ b/contrib/src/mmedia/cdunix.cpp @@ -22,6 +22,8 @@ #pragma hdrstop #endif +#if HAVE_KNOWN_CDROM_INTERFACE + // --------------------------------------------------------------------------- // MMedia headers // --------------------------------------------------------------------------- @@ -55,7 +57,7 @@ IMPLEMENT_DYNAMIC_CLASS(wxCDAudioLinux, wxCDAudio) wxCDAudioLinux::wxCDAudioLinux() : wxCDAudio(), m_fd(-1) { - OpenDevice("/dev/cdrom"); + OpenDevice(wxT("/dev/cdrom")); } wxCDAudioLinux::wxCDAudioLinux(const wxString& dev_name) @@ -78,7 +80,7 @@ void wxCDAudioLinux::OpenDevice(const wxString& dev_name) struct cdrom_tocentry entry, old_entry; struct cdrom_tochdr diskinf; struct cdrom_msf0 *msf = &entry.cdte_addr.msf, - *old_msf = &old_entry.cdte_addr.msf; + *old_msf = &old_entry.cdte_addr.msf; wxCDtime *the_track; wxCDtime tot_tm; wxUint8 nb_tracks, i; @@ -216,3 +218,5 @@ wxCDAudio::CDtoc& wxCDAudioLinux::GetToc() { return *m_toc; } + +#endif