Closed
Bug 1018908
Opened 11 years ago
Closed 11 years ago
Use JS_FRIEND_DATA only on global variable declarations, not on their instances, to fix compilation with mingw.
Categories
(Core :: JavaScript Engine, defect)
Tracking
()
RESOLVED
DUPLICATE
of bug 1019003
People
(Reporter: jacek, Assigned: jacek)
Details
Attachments
(1 file)
1.68 KB,
patch
|
Details | Diff | Splinter Review |
It seems like GCC can't handle dllimport in this case and I get errors like:
0:02.30 /home/jacek/mozilla/mozilla-central/js/src/vm/TypedArrayObject.cpp:2098:37: error: external linkage required for symbol ‘js::detail::Int8ArrayClassPtr’ because of ‘dllexport’ attribute
0:02.30 IMPL_TYPED_ARRAY_JSAPI_CONSTRUCTORS(Int8, int8_t)
0:02.30 ^
0:02.30 /home/jacek/mozilla/mozilla-central/js/src/vm/TypedArrayObject.cpp:2095:54: note: in definition of macro ‘IMPL_TYPED_ARRAY_JSAPI_CONSTRUCTORS’
0:02.30 JS_FRIEND_DATA(const js::Class* const) js::detail::Name ## ArrayClassPtr = \
0:02.30 ^
0:02.30 /home/jacek/mozilla/mozilla-central/js/src/vm/TypedArrayObject.cpp:2099:37: error: external linkage required for symbol ‘js::detail::Uint8ArrayClassPtr’ because of ‘dllexport’ attribute
0:02.30 IMPL_TYPED_ARRAY_JSAPI_CONSTRUCTORS(Uint8, uint8_t)
Having the attribute on extern declaration should be enough.
Assignee | ||
Updated•11 years ago
|
Attachment #8432427 -
Flags: review?(jwalden+bmo)
Comment 1•11 years ago
|
||
You have the chronologically older bug. But in finally getting to reviewing patches after a long deviation into security work, I picked up bug 1019003's review first, which makes this a dup.
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → DUPLICATE
Comment 2•11 years ago
|
||
Comment on attachment 8432427 [details] [diff] [review]
fix
Review of attachment 8432427 [details] [diff] [review]:
-----------------------------------------------------------------
Sorry for the duplication of effort here. :-(
Attachment #8432427 -
Flags: review?(jwalden+bmo)
You need to log in
before you can comment on or make changes to this bug.
Description
•