Skip to content

Commit fefeeb6

Browse files
authored
Merge pull request #15 from emscripten-core/emscripten-libs-19-update
Add downstream library changes from emscripten
2 parents febdd0b + 7e223f5 commit fefeeb6

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

libcxx/include/__locale_dir/locale_base_api.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,9 @@
99
#ifndef _LIBCPP___LOCALE_DIR_LOCALE_BASE_API_H
1010
#define _LIBCPP___LOCALE_DIR_LOCALE_BASE_API_H
1111

12-
#if defined(_LIBCPP_MSVCRT_LIKE)
12+
#if defined(__APPLE__) || defined(__FreeBSD__) || defined(__EMSCRIPTEN__)
13+
# include <xlocale.h>
14+
#elif defined(_LIBCPP_MSVCRT_LIKE)
1315
# include <__locale_dir/locale_base_api/win32.h>
1416
#elif defined(_AIX) || defined(__MVS__)
1517
# include <__locale_dir/locale_base_api/ibm.h>
@@ -25,8 +27,6 @@
2527
# include <__locale_dir/locale_base_api/fuchsia.h>
2628
#elif defined(__wasi__) || defined(_LIBCPP_HAS_MUSL_LIBC)
2729
# include <__locale_dir/locale_base_api/musl.h>
28-
#elif defined(__APPLE__) || defined(__FreeBSD__)
29-
# include <xlocale.h>
3030
#endif
3131

3232
#if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)

libcxxabi/src/cxa_exception.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -789,9 +789,9 @@ __cxa_rethrow_primary_exception(void* thrown_object)
789789
// In debug mode, call a JS library function to use
790790
// WebAssembly.Exception JS API, which enables us to include stack
791791
// traces
792-
__throw_exception_with_stack_trace(&exception_header->unwindHeader);
792+
__throw_exception_with_stack_trace(&dep_exception_header->unwindHeader);
793793
#else
794-
_Unwind_RaiseException(&exception_header->unwindHeader);
794+
_Unwind_RaiseException(&dep_exception_header->unwindHeader);
795795
#endif
796796
// Some sort of unwinding error. Note that terminate is a handler.
797797
__cxa_begin_catch(&dep_exception_header->unwindHeader);

libcxxabi/src/private_typeinfo.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1546,7 +1546,7 @@ __base_class_type_info::search_below_dst(__dynamic_cast_info* info,
15461546

15471547

15481548
// XXX EMSCRIPTEN
1549-
#ifndef __WASM_EXCEPTIONS__
1549+
#if defined(__wasm__) && !defined(__WASM_EXCEPTIONS__)
15501550

15511551
#include "cxa_exception.h"
15521552

@@ -1601,5 +1601,5 @@ void *__cxa_get_exception_ptr(void *thrown_object) throw() {
16011601

16021602
} // __cxxabiv1
16031603

1604-
#endif // !__WASM_EXCEPTIONS__
1604+
#endif // __wasm__ && !__WASM_EXCEPTIONS__
16051605

0 commit comments

Comments
 (0)