Closed
Bug 848264
Opened 13 years ago
Closed 13 years ago
nsPluginHost.cpp: error: no member named 'strtol' in namespace 'std' (clang++ -stdlib=libc++)
Categories
(Core Graveyard :: Plug-ins, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
mozilla22
People
(Reporter: jbeich, Assigned: jbeich)
References
Details
Attachments
(1 file)
|
836 bytes,
patch
|
Waldo
:
review+
|
Details | Diff | Splinter Review |
nsGUIEvent.h (pulled via nsIPresShell.h) no longer provides <cstdlib>
which was implicitly used by nsPluginHost.cpp for std::strtol
dom/plugins/base/nsPluginHost.cpp:2819:31: error:
no member named 'strtol' in namespace 'std'; did you mean 'strtok'?
long mimetypecount = std::strtol(reader.LinePtr(), nullptr, 10);
~~~~~^~~~~~
strtok
/usr/include/string.h:119:7: note: 'strtok' declared here
char *strtok(char * __restrict, const char * __restrict);
^
dom/plugins/base/nsPluginHost.cpp:2819:65: error:
too many arguments to function call, expected 2, have 3
long mimetypecount = std::strtol(reader.LinePtr(), nullptr, 10);
~~~~~~~~~~~ ^~
2 errors generated.
Attachment #721632 -
Flags: review?(jwalden+bmo)
Updated•13 years ago
|
Attachment #721632 -
Flags: review?(jwalden+bmo) → review+
Keywords: checkin-needed
Comment 2•13 years ago
|
||
Assignee: nobody → jbeich
Keywords: checkin-needed
Comment 3•13 years ago
|
||
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla22
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
•