mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-08 08:48:39 +09:00
finally fix gcc building fully
This commit is contained in:
parent
c90243e4ee
commit
7917e6bed3
12 changed files with 60 additions and 13 deletions
30
dom/canvas/WebGLContext_mingw_compat.cpp
Normal file
30
dom/canvas/WebGLContext_mingw_compat.cpp
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
||||
/* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
#if defined(__MINGW32__) && defined(__i386__)
|
||||
|
||||
#include "WebGLContext.h"
|
||||
|
||||
namespace mozilla {
|
||||
|
||||
extern "C" nsresult __attribute__((stdcall))
|
||||
WebGLContext_InitializeWithDrawTarget_stdcall(
|
||||
WebGLContext* self,
|
||||
nsIDocShell* aDocShell,
|
||||
NotNull<gfx::DrawTarget*> aDrawTarget)
|
||||
__asm__("__ZN7mozilla12WebGLContext24InitializeWithDrawTargetEP11nsIDocShellNS_7NotNullIPNS_3gfx10DrawTargetEEE@12");
|
||||
|
||||
extern "C" nsresult __attribute__((stdcall))
|
||||
WebGLContext_InitializeWithDrawTarget_stdcall(
|
||||
WebGLContext* self,
|
||||
nsIDocShell* aDocShell,
|
||||
NotNull<gfx::DrawTarget*> aDrawTarget)
|
||||
{
|
||||
return self->WebGLContext::InitializeWithDrawTarget(aDocShell, aDrawTarget);
|
||||
}
|
||||
|
||||
} // namespace mozilla
|
||||
|
||||
#endif
|
||||
Loading…
Add table
Add a link
Reference in a new issue