Bug 1188457 - Fixed SapiService.cpp compilation on mingw. r=jimm

This commit is contained in:
Jacek Caban 2015-07-29 12:27:22 +02:00
parent 91faebe816
commit e36a54bb2a
2 changed files with 5 additions and 2 deletions

View File

@ -132,6 +132,8 @@ SapiCallback::OnSpeechEvent(const SPEVENT& speechEvent)
mTask->DispatchBoundary(NS_LITERAL_STRING("sentence"), mTask->DispatchBoundary(NS_LITERAL_STRING("sentence"),
GetTickCount() - mStartingTime, mCurrentIndex); GetTickCount() - mStartingTime, mCurrentIndex);
break; break;
default:
break;
} }
} }
@ -180,7 +182,7 @@ SapiService::Init()
if (Preferences::GetBool("media.webspeech.synth.test")) { if (Preferences::GetBool("media.webspeech.synth.test")) {
// When enabled, we shouldn't add OS backend (Bug 1160844) // When enabled, we shouldn't add OS backend (Bug 1160844)
return nullptr; return false;
} }
if (FAILED(CoCreateInstance(CLSID_SpVoice, nullptr, CLSCTX_ALL, IID_ISpVoice, if (FAILED(CoCreateInstance(CLSID_SpVoice, nullptr, CLSCTX_ALL, IID_ISpVoice,

View File

@ -356,7 +356,8 @@ if CONFIG['OS_ARCH'] == 'WINNT':
'wbemuuid', 'wbemuuid',
'wintrust', 'wintrust',
'wtsapi32', 'wtsapi32',
'locationapi' 'locationapi',
'sapi',
] ]
if CONFIG['ACCESSIBILITY']: if CONFIG['ACCESSIBILITY']:
OS_LIBS += [ OS_LIBS += [