Skip to content
This repository was archived by the owner on Aug 31, 2021. It is now read-only.

Commit 19facc3

Browse files
livecodefraserlivecodeali
authored andcommitted
[[ Skia ]] Patch Skia to support Emscripten
(cherry picked from commit 8a0be54)
1 parent a848ea6 commit 19facc3

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

libskia/src/core/SkSmallAllocator.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,10 @@
1919
// max_align_t is needed to calculate the alignment for createWithIniterT when the T used is an
2020
// abstract type. The complication with max_align_t is that it is defined differently for
2121
// different builds.
22+
//
23+
// [[ Patch ]] Emscripten support
2224
namespace {
23-
#if defined(SK_BUILD_FOR_WIN32) || defined(SK_BUILD_FOR_MAC)
25+
#if defined(SK_BUILD_FOR_WIN32) || defined(SK_BUILD_FOR_MAC) || defined(__EMSCRIPTEN__)
2426
// Use std::max_align_t for compiles that follow the standard.
2527
#include <cstddef>
2628
using SystemAlignment = std::max_align_t;

0 commit comments

Comments
 (0)