X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e8482f24cfc00645607f8526fde38d39e0dcaa63..d1a6e2b7a103d761fbc15e0e9c1c20ab53a849d9:/contrib/src/mmedia/cdunix.cpp?ds=inline diff --git a/contrib/src/mmedia/cdunix.cpp b/contrib/src/mmedia/cdunix.cpp index 5a8f42de61..05b6dd070b 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) @@ -216,3 +218,5 @@ wxCDAudio::CDtoc& wxCDAudioLinux::GetToc() { return *m_toc; } + +#endif