From 6187be0850e8f5ba33fffa18854f54ac85f7ff16 Mon Sep 17 00:00:00 2001 From: Sam Hocevar Date: Thu, 4 Apr 2019 23:40:09 +0200 Subject: [PATCH] emscripten: use document.querySelector() instead of getElementById(). --- build/autotools/m4/lol-conf.m4 | 5 +++-- src/lol/base/features.h | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/build/autotools/m4/lol-conf.m4 b/build/autotools/m4/lol-conf.m4 index c6c45ae6..c2d3ce3b 100644 --- a/build/autotools/m4/lol-conf.m4 +++ b/build/autotools/m4/lol-conf.m4 @@ -183,11 +183,12 @@ AC_CHECK_HEADERS(emscripten.h, AC_CHECK_HEADERS(emscripten/html5.h) dnl XXX: activate this if memory heap is too small #AM_CXXFLAGS="${AM_CXXFLAGS} -s ALLOW_MEMORY_GROWTH=1" + dnl See https://github.com/emscripten-core/emscripten/pull/7977 for more details + CPPFLAGS="${CPPFLAGS} -s DISABLE_DEPRECATED_FIND_EVENT_TARGET_BEHAVIOR=1" dnl HACK: until emcc properly adds these to EMSDK_OPTS CPPFLAGS="${CPPFLAGS} -U__i386__ -U__x86_64__ -U__i386 -U__x86_64 -Ui386 -Ux86_64" CPPFLAGS="${CPPFLAGS} -U__SSE__ -U__SSE2__ -U__MMX__ -UX87_DOUBLE_ROUNDING" - CPPFLAGS="${CPPFLAGS} -UHAVE_GCC_ASM_FOR_X87 -DEMSCRIPTEN -U__STRICT_ANSI__" - CPPFLAGS="${CPPFLAGS} -U__CYGWIN__"]) + CPPFLAGS="${CPPFLAGS} -UHAVE_GCC_ASM_FOR_X87 -U__STRICT_ANSI__ -U__CYGWIN__"]) AM_CONDITIONAL(LOL_USE_EMSCRIPTEN, test "${ac_cv_my_have_emscripten}" != "no") diff --git a/src/lol/base/features.h b/src/lol/base/features.h index d6aa9006..6f5a3e69 100644 --- a/src/lol/base/features.h +++ b/src/lol/base/features.h @@ -23,7 +23,7 @@ #define LOL_FEATURE_THREADS 1 -#if defined EMSCRIPTEN +#if defined __EMSCRIPTEN__ # undef LOL_FEATURE_THREADS #endif