summaryrefslogtreecommitdiff
path: root/lib/cdreader.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/cdreader.cpp')
-rw-r--r--lib/cdreader.cpp14
1 files changed, 10 insertions, 4 deletions
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 <stdio.h>
#include <string.h>
@@ -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