diff options
author | Ulf Samuelsson <ulf.samuelsson@atmel.com> | 2010-03-16 08:10:31 +0100 |
---|---|---|
committer | Ulf Samuelsson <ulf.samuelsson@atmel.com> | 2010-03-16 08:10:31 +0100 |
commit | 9f06d76aaebf119e56973a0a2eecfa17689e3b0c (patch) | |
tree | 7b52a7e889ce7a0ae490744ce310b8adf7e5b7a4 /recipes/gtk-webcore/files/no-static-templates.patch | |
parent | ede720badf45fe73a900013967dd622e1add201a (diff) |
osb-jscore_svn.bb: Templates cannot be static
"static inline" templates in
"JavaScriptCore/kjs/protected_values.cpp"
causes compile errors
This patch removes the static keywords
allowing the build to complete successfully.
Signed-off-by: Ulf Samuelsson <ulf.samuelsson@atmel.com>
Diffstat (limited to 'recipes/gtk-webcore/files/no-static-templates.patch')
-rw-r--r-- | recipes/gtk-webcore/files/no-static-templates.patch | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/recipes/gtk-webcore/files/no-static-templates.patch b/recipes/gtk-webcore/files/no-static-templates.patch new file mode 100644 index 0000000000..2cfb41f655 --- /dev/null +++ b/recipes/gtk-webcore/files/no-static-templates.patch @@ -0,0 +1,21 @@ +diff -urN JavaScriptCore-0rig/kjs/protected_values.cpp JavaScriptCore/kjs/protected_values.cpp +--- JavaScriptCore-0rig/kjs/protected_values.cpp 2010-02-26 12:57:50.000000000 +0100 ++++ JavaScriptCore/kjs/protected_values.cpp 2010-02-26 12:59:13.000000000 +0100 +@@ -195,7 +195,7 @@ + + template <int size> static unsigned hash(ValueImp *pointer); + +-template <> static inline unsigned hash<4>(ValueImp *pointer) ++template <> inline unsigned hash<4>(ValueImp *pointer) + { + int a = (int)(intptr_t)PHI; + int b = (int)(intptr_t)pointer; +@@ -214,7 +214,7 @@ + return (unsigned)c; + } + +-template <> static inline unsigned hash<8>(ValueImp *pointer) ++template <> inline unsigned hash<8>(ValueImp *pointer) + { + int a = (int)PHI; + int b = (int)(intptr_t)pointer; |