mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 783505 - OS X gcc builds failing. r=jorendorff.
This patch adds a workaround for http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39608
This commit is contained in:
parent
37bc3e58f2
commit
5ba3a19a46
@ -1423,8 +1423,14 @@ class TypedArrayTemplate
|
||||
Getter(JSContext *cx, unsigned argc, Value *vp)
|
||||
{
|
||||
CallArgs args = CallArgsFromVp(argc, vp);
|
||||
// FIXME: Hack to keep us building with gcc 4.2. Remove this once we
|
||||
// drop support for gcc 4.2. See bug 783505 for the details.
|
||||
#if defined(__GNUC__) && __GNUC_MINOR__ <= 2
|
||||
return CallNonGenericMethod(cx, IsThisClass, GetterImpl<ValueGetter>, args);
|
||||
#else
|
||||
return CallNonGenericMethod<ThisTypeArray::IsThisClass,
|
||||
ThisTypeArray::GetterImpl<ValueGetter> >(cx, args);
|
||||
#endif
|
||||
}
|
||||
|
||||
// Define an accessor for a read-only property that invokes a native getter
|
||||
|
Loading…
Reference in New Issue
Block a user