X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/6239ee05567eac71754f56c2a154222d10b57ff1..8064223b7b1b3657363b7a635c381b9269d95e55:/src/mac/carbon/sound.cpp diff --git a/src/mac/carbon/sound.cpp b/src/mac/carbon/sound.cpp index c99967756a..b3ff384fc8 100644 --- a/src/mac/carbon/sound.cpp +++ b/src/mac/carbon/sound.cpp @@ -52,15 +52,7 @@ #endif #endif -#if defined __WXMAC__ && defined __DARWIN__/*TARGET_CARBON*/ -#ifdef __APPLE_CC__ #include -#else -#include -#endif -#else -#include -#endif //quicktime media layer only required for mac emulation on pc #ifndef __WXMAC__ @@ -79,7 +71,7 @@ static wxTimer* lastSoundTimer=NULL; static bool lastSoundIsPlaying=false; -#if !defined(__DARWIN__) || !defined(__LP64__) +#if !defined(__LP64__) #define USE_QUICKTIME 1 #else #define USE_QUICKTIME 0 @@ -401,7 +393,7 @@ bool wxSound::DoPlay(unsigned flags) const Handle dataRef = NULL; OSType dataRefType; - err = QTNewDataReferenceFromFullPathCFString(wxMacCFStringHolder(m_sndname,wxLocale::GetSystemEncoding()), + err = QTNewDataReferenceFromFullPathCFString(wxCFStringRef(m_sndname,wxLocale::GetSystemEncoding()), (UInt32)kQTNativeDefaultPathStyle, 0, &dataRef, &dataRefType); wxASSERT(err == noErr);