Bug 902587 - Use proper compare function on mingw.

This commit is contained in:
Jacek Caban 2014-02-07 12:52:00 +01:00
parent 8de6e62cec
commit 0f44098ce8

View File

@ -381,7 +381,7 @@ void TelemetryIOInterposeObserver::Observe(Observation& aOb)
for (uint32_t i = 0; i < safeDirsLen; ++i) {
uint32_t curSafeDirLen = mSafeDirs[i].Length();
if (curSafeDirLen <= filenameStrLen) {
#if defined(XP_WIN)
#if defined(_MSC_VER)
if (!_wcsnicmp(filename, mSafeDirs[i].get(), curSafeDirLen)) {
#else
if (!std::char_traits<char16_t>::compare(filename, mSafeDirs[i].get(),