aboutsummaryrefslogtreecommitdiff
path: root/backends/midi
diff options
context:
space:
mode:
authorMax Horn2008-05-18 17:20:59 +0000
committerMax Horn2008-05-18 17:20:59 +0000
commit8d0766f4f741df6d9c0a633c895fb158dac85f34 (patch)
tree53f5857179b3551ca6c33d78f753fbab4df8571b /backends/midi
parent14c411e90b15ec2b889d103258abbf3aa026dd18 (diff)
downloadscummvm-rg350-8d0766f4f741df6d9c0a633c895fb158dac85f34.tar.gz
scummvm-rg350-8d0766f4f741df6d9c0a633c895fb158dac85f34.tar.bz2
scummvm-rg350-8d0766f4f741df6d9c0a633c895fb158dac85f34.zip
Hack to disable 'depracted' warnings on OS X 10.5
svn-id: r32173
Diffstat (limited to 'backends/midi')
-rw-r--r--backends/midi/coreaudio.cpp11
-rw-r--r--backends/midi/quicktime.cpp12
2 files changed, 23 insertions, 0 deletions
diff --git a/backends/midi/coreaudio.cpp b/backends/midi/coreaudio.cpp
index 8e00c24a1f..d7ab93a90a 100644
--- a/backends/midi/coreaudio.cpp
+++ b/backends/midi/coreaudio.cpp
@@ -24,6 +24,17 @@
#ifdef MACOSX
+// HACK to disable deprecated warnings under Mac OS X 10.5.
+// Apple depracted the AUGraphNewNode & AUGraphGetNodeInfo APIs
+// in favor of the new AUGraphAddNode & AUGraphNodeInfo APIs.
+// While it would be trivial to switch to those, this would break
+// binary compatibility with all pre-10.5 systems, so we don't want
+// to do that just now. Maybe when 10.6 comes... :)
+#include <AvailabilityMacros.h>
+#undef DEPRECATED_ATTRIBUTE
+#define DEPRECATED_ATTRIBUTE
+
+
#include "common/config-manager.h"
#include "common/util.h"
#include "sound/midiplugin.h"
diff --git a/backends/midi/quicktime.cpp b/backends/midi/quicktime.cpp
index b9b5ba93c4..63905212e6 100644
--- a/backends/midi/quicktime.cpp
+++ b/backends/midi/quicktime.cpp
@@ -24,6 +24,18 @@
#if defined(MACOSX) || defined(macintosh)
+// HACK to disable deprecated warnings under Mac OS X 10.5.
+// Apple depracted the complete QuickTime Music/MIDI API.
+// Apps are supposed to use CoreAudio & CoreMIDI. We do support
+// those, but while QT Midi support is still around, there is no
+// reason to disable this driver. If they really ditch the API in 10.6,
+// we can still release binaries with this driver disabled/removed.
+#include <AvailabilityMacros.h>
+#undef DEPRECATED_ATTRIBUTE
+#define DEPRECATED_ATTRIBUTE
+
+
+
#include "common/endian.h"
#include "common/util.h"
#include "sound/midiplugin.h"