Closed Bug 1150354 Opened 11 years ago Closed 11 years ago

Make nsPluginDirServiceProvider build with MSVC 2015 CTP 6 by dealing with wcstok signature change

Categories

(Core Graveyard :: Plug-ins, defect)

x86_64
Windows 8.1
defect
Not set
normal

Tracking

(firefox40 fixed)

RESOLVED FIXED
mozilla40
Tracking Status
firefox40 --- fixed

People

(Reporter: briansmith, Assigned: briansmith)

References

Details

Attachments

(1 file)

MSVC 2013 and earlier provided only a non-standard two-argument variant of wcstok that is generally not thread-safe. For our purposes here, it works fine, though, so we polyfill the standard variant using the non-standard variant.
Attachment #8587154 - Flags: review?(jmathies)
Comment on attachment 8587154 [details] [diff] [review] Make nsPluginDirServiceProvider build with MSVC 2015 CTP 6. Review of attachment 8587154 [details] [diff] [review]: ----------------------------------------------------------------- ::: dom/plugins/base/nsPluginDirServiceProvider.cpp @@ +122,5 @@ > + // fine, though. > + auto wcstok = [](wchar_t* strToken, const wchar_t* strDelimit, > + wchar_t** /*ctx*/) { > + return ::std::wcstok(strToken, strDelimit); > + }; First time I've run across this syntax! Pretty neat.
Attachment #8587154 - Flags: review?(jmathies) → review+
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla40
Depends on: 1153909
Depends on: 1290641
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: