diff options
author | Khem Raj <raj.khem@gmail.com> | 2019-01-29 21:17:23 -0800 |
---|---|---|
committer | Armin Kuster <akuster808@gmail.com> | 2019-02-04 22:01:26 -0800 |
commit | 0e8912b5723b5b2de32977ab0c736c32bcc94b0c (patch) | |
tree | 13a57ea3a33da14dc91752bcbae62fd04dbca285 /meta-oe/recipes-extended/mozjs/mozjs/JS_PUBLIC_API.patch | |
parent | 2ae6aaf9e734022b40d23f12099b1cb9c4934ca2 (diff) | |
download | meta-openembedded-0e8912b5723b5b2de32977ab0c736c32bcc94b0c.tar.gz |
mozjs: Fix symbol visibility with clang/libc++
Signed-off-by: Khem Raj <raj.khem@gmail.com>
[fixup for thud context]
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Diffstat (limited to 'meta-oe/recipes-extended/mozjs/mozjs/JS_PUBLIC_API.patch')
-rw-r--r-- | meta-oe/recipes-extended/mozjs/mozjs/JS_PUBLIC_API.patch | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/meta-oe/recipes-extended/mozjs/mozjs/JS_PUBLIC_API.patch b/meta-oe/recipes-extended/mozjs/mozjs/JS_PUBLIC_API.patch new file mode 100644 index 000000000..6c87ff2a4 --- /dev/null +++ b/meta-oe/recipes-extended/mozjs/mozjs/JS_PUBLIC_API.patch | |||
@@ -0,0 +1,37 @@ | |||
1 | Patch from https://bugzilla.mozilla.org/show_bug.cgi?id=1426865 | ||
2 | |||
3 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
4 | Upstream-Status: Submitted [https://bugzilla.mozilla.org/show_bug.cgi?id=1426865] | ||
5 | --- a/js/public/TypeDecls.h | ||
6 | +++ b/js/public/TypeDecls.h | ||
7 | @@ -21,22 +21,23 @@ | ||
8 | #include <stdint.h> | ||
9 | |||
10 | #include "js-config.h" | ||
11 | +#include "jstypes.h" | ||
12 | |||
13 | struct JSContext; | ||
14 | -class JSFunction; | ||
15 | +class JS_PUBLIC_API(JSFunction); | ||
16 | class JSObject; | ||
17 | -class JSScript; | ||
18 | -class JSString; | ||
19 | -class JSAddonId; | ||
20 | +class JS_PUBLIC_API(JSScript); | ||
21 | +class JS_PUBLIC_API(JSString); | ||
22 | +class JS_PUBLIC_API(JSAddonId); | ||
23 | |||
24 | -struct jsid; | ||
25 | +struct JS_PUBLIC_API(jsid); | ||
26 | |||
27 | namespace JS { | ||
28 | |||
29 | typedef unsigned char Latin1Char; | ||
30 | |||
31 | -class Symbol; | ||
32 | -class Value; | ||
33 | +class JS_PUBLIC_API(Symbol); | ||
34 | +class JS_PUBLIC_API(Value); | ||
35 | template <typename T> class Handle; | ||
36 | template <typename T> class MutableHandle; | ||
37 | template <typename T> class Rooted; | ||