From 958958395b0f7e742f55c4fb2404d097a74e9bf4 Mon Sep 17 00:00:00 2001 From: pixel Date: Thu, 13 Oct 2005 16:00:37 +0000 Subject: Fixing various (fucking) macos X issues. --- lib/cdreader.cpp | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) (limited to 'lib') diff --git a/lib/cdreader.cpp b/lib/cdreader.cpp index af1b419..3d0a2c4 100644 --- a/lib/cdreader.cpp +++ b/lib/cdreader.cpp @@ -17,7 +17,7 @@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ -/* $Id: cdreader.cpp,v 1.21 2004-11-27 21:47:56 pixel Exp $ */ +/* $Id: cdreader.cpp,v 1.22 2005-10-13 16:00:37 pixel Exp $ */ #include #include @@ -246,9 +246,7 @@ void cdreader::getsector(void *buf, int sec, int nb) throw (GeneralException) { sector += nb; } -#endif - -#if defined (_MSC_VER) || defined (__MINGW32__) +#elif defined (_MSC_VER) || defined (__MINGW32__) cdreader::cdreader(const String & no) throw (GeneralException) : Handle(-1), n(no), sector(0) { if (!(hFile = cdabstract::OpenIOCTLFile(no[0]))) @@ -330,5 +328,13 @@ void cdreader::getsector(void *buf, int sec, int nb) throw (GeneralException) { sector += nb; } +#else +cdreader::cdreader(const String & no) throw (GeneralException) : Handle(-1) { + throw GeneralException("No support for cdreader on this platform."); +} + +void cdreader::getsector(void *buf, int sec, int nb) throw (GeneralException) { + throw GeneralException("Stop insisting... you. just. can't."); +} #endif -- cgit v1.2.3