summaryrefslogtreecommitdiff
path: root/lib/cdreader.cpp
diff options
context:
space:
mode:
authorpixel <pixel>2005-10-13 16:00:37 +0000
committerpixel <pixel>2005-10-13 16:00:37 +0000
commit958958395b0f7e742f55c4fb2404d097a74e9bf4 (patch)
tree980ccc7eda5df58c7bd65f14bdd900e410af6eee /lib/cdreader.cpp
parenta32f4d44f1abac4084a1fc29f8b7cda141000d96 (diff)
Fixing various (fucking) macos X issues.
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