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)
Tracking
(firefox40 fixed)
RESOLVED
FIXED
mozilla40
| Tracking | Status | |
|---|---|---|
| firefox40 | --- | fixed |
People
(Reporter: briansmith, Assigned: briansmith)
References
Details
Attachments
(1 file)
|
1.92 KB,
patch
|
jimm
:
review+
|
Details | Diff | Splinter Review |
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 1•11 years ago
|
||
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+
| Assignee | ||
Comment 2•11 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/9bcb23d1e05f
Thanks for the quick review turnaround!
Comment 3•11 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla40
Updated•4 years ago
|
Product: Core → Core Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•