diff --git a/src/GAudioOutput.cc b/src/GAudioOutput.cc index f9e36d93e7c656f426ddb9a863aadb24d2547ca4..57f47bc6dd44888f0a3a0998347e7c876b26cb9b 100644 --- a/src/GAudioOutput.cc +++ b/src/GAudioOutput.cc @@ -221,7 +221,7 @@ bool GAudioOutput::say(QString text, int severity) // Slashes necessary to have the right start to the sentence // copying data prevents SpeakString from reading additional chars text = "\\" + text; - QStdWString str = text.toStdWString(); + std::wstring str = text.toStdWString(); unsigned char str2[1024] = {}; memcpy(str2, text.toLatin1().data(), str.length()); SpeakString(str2); diff --git a/src/GAudioOutput.h b/src/GAudioOutput.h index ca8c2247dabd857e8a1a2c9dd3619e560aadc6cd..dbf3b60beb6d91261ab47dd65499362600c8ca02 100644 --- a/src/GAudioOutput.h +++ b/src/GAudioOutput.h @@ -36,8 +36,8 @@ This file is part of the PIXHAWK project #include #include #ifdef Q_OS_MAC -#include -#include +//#include +//#include #endif #ifdef Q_OS_LINUX //#include