[Scummvm-cvs-logs] SF.net SVN: scummvm: [32173] scummvm/trunk/backends/midi

fingolfin at users.sourceforge.net fingolfin at users.sourceforge.net
Sun May 18 19:21:00 CEST 2008


Revision: 32173
          http://scummvm.svn.sourceforge.net/scummvm/?rev=32173&view=rev
Author:   fingolfin
Date:     2008-05-18 10:20:59 -0700 (Sun, 18 May 2008)

Log Message:
-----------
Hack to disable 'depracted' warnings on OS X 10.5

Modified Paths:
--------------
    scummvm/trunk/backends/midi/coreaudio.cpp
    scummvm/trunk/backends/midi/quicktime.cpp

Modified: scummvm/trunk/backends/midi/coreaudio.cpp
===================================================================
--- scummvm/trunk/backends/midi/coreaudio.cpp	2008-05-18 15:02:01 UTC (rev 32172)
+++ scummvm/trunk/backends/midi/coreaudio.cpp	2008-05-18 17:20:59 UTC (rev 32173)
@@ -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"

Modified: scummvm/trunk/backends/midi/quicktime.cpp
===================================================================
--- scummvm/trunk/backends/midi/quicktime.cpp	2008-05-18 15:02:01 UTC (rev 32172)
+++ scummvm/trunk/backends/midi/quicktime.cpp	2008-05-18 17:20:59 UTC (rev 32173)
@@ -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"


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.




More information about the Scummvm-git-logs mailing list