diff options
author | Andrew den Exter <andrew.den-exter@nokia.com> | 2010-04-07 05:48:12 (GMT) |
---|---|---|
committer | Andrew den Exter <andrew.den-exter@nokia.com> | 2010-04-07 05:48:12 (GMT) |
commit | f3e9ec546a811f31b4a0c934f0b1c6fa571fa020 (patch) | |
tree | 56d3b1f1425c3d85c7e72ba89985bf0dd3793819 /src/3rdparty/phonon/ds9 | |
parent | edd41ee5488716cf8336a7d8ea0cb3d48d0e7b14 (diff) | |
download | Qt-f3e9ec546a811f31b4a0c934f0b1c6fa571fa020.zip Qt-f3e9ec546a811f31b4a0c934f0b1c6fa571fa020.tar.gz Qt-f3e9ec546a811f31b4a0c934f0b1c6fa571fa020.tar.bz2 |
Fix Phonon build with mingw.
Don't include comdef.h unless building with MSVC.
Reviewed-by: Jason McDonald
Diffstat (limited to 'src/3rdparty/phonon/ds9')
-rw-r--r-- | src/3rdparty/phonon/ds9/mediaobject.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/3rdparty/phonon/ds9/mediaobject.cpp b/src/3rdparty/phonon/ds9/mediaobject.cpp index d1e15c0..b9a8713 100644 --- a/src/3rdparty/phonon/ds9/mediaobject.cpp +++ b/src/3rdparty/phonon/ds9/mediaobject.cpp @@ -27,7 +27,9 @@ along with this library. If not, see <http://www.gnu.org/licenses/>. #include <objbase.h> #include <initguid.h> #include <qnetwork.h> -#include <comdef.h> +#ifdef Q_CC_MSVC +# include <comdef.h> +#endif #include <evcode.h> #include "mediaobject.h" @@ -851,8 +853,10 @@ namespace Phonon ushort buffer[MAX_ERROR_TEXT_LEN]; if (getErrorText && getErrorText(hr, (WCHAR*)buffer, MAX_ERROR_TEXT_LEN)) { m_errorString = QString::fromUtf16(buffer); +#ifdef Q_CC_MSVC } else { m_errorString = QString::fromUtf16((ushort*)_com_error(hr).ErrorMessage()); +#endif } const QString comError = QString::number(uint(hr), 16); if (!m_errorString.toLower().contains(comError.toLower())) { |