aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorAleric Inglewood2010-10-28 00:08:50 +0200
committerAleric Inglewood2010-10-28 00:08:50 +0200
commit686f5fdf0f710387c7aa84b41434f0bab8cd6875 (patch)
treea2b4ff74b6818717179818caea226f98d118d3f4
parentLoad prebuilt glib when needed. Don't compile gstreamer plugin on windows. (diff)
downloadmeta-impy-686f5fdf0f710387c7aa84b41434f0bab8cd6875.zip
meta-impy-686f5fdf0f710387c7aa84b41434f0bab8cd6875.tar.gz
meta-impy-686f5fdf0f710387c7aa84b41434f0bab8cd6875.tar.bz2
meta-impy-686f5fdf0f710387c7aa84b41434f0bab8cd6875.tar.xz
Only initialize WebCore resource(s) on linux.
I searched the darwin and windows llqtwebkit tarballs and neither qInitResources_WebCore nor qInitResources_WebCore_QT_NAMESPACE exist in there... No idea why, but then we can't call it to initialize it now can we?
-rwxr-xr-xlinden/indra/media_plugins/webkit/media_plugin_webkit.cpp15
1 files changed, 8 insertions, 7 deletions
diff --git a/linden/indra/media_plugins/webkit/media_plugin_webkit.cpp b/linden/indra/media_plugins/webkit/media_plugin_webkit.cpp
index d01cd9e..0fb64bb 100755
--- a/linden/indra/media_plugins/webkit/media_plugin_webkit.cpp
+++ b/linden/indra/media_plugins/webkit/media_plugin_webkit.cpp
@@ -34,9 +34,6 @@
34 */ 34 */
35 35
36#include "llqtwebkit.h" 36#include "llqtwebkit.h"
37#ifdef LL_STANDALONE
38#include <qglobal.h>
39#endif
40 37
41#include "linden_common.h" 38#include "linden_common.h"
42#include "indra_constants.h" // for indra keyboard codes 39#include "indra_constants.h" // for indra keyboard codes
@@ -82,14 +79,18 @@ extern "C" {
82 } 79 }
83#endif 80#endif
84 81
85// We don't provide Qt headers, so define this here for non-standalone. 82#ifdef LL_STANDALONE
86#ifndef QT_MANGLE_NAMESPACE 83#include <qglobal.h>
84#elif defined(LL_LINUX)
85// We don't provide Qt headers for non-standalone, therefore define this here.
86// Our prebuilt is built with QT_NAMESPACE undefined.
87#define QT_MANGLE_NAMESPACE(name) name 87#define QT_MANGLE_NAMESPACE(name) name
88#endif
89#ifndef Q_INIT_RESOURCE
90#define Q_INIT_RESOURCE(name) \ 88#define Q_INIT_RESOURCE(name) \
91 do { extern int QT_MANGLE_NAMESPACE(qInitResources_ ## name) (); \ 89 do { extern int QT_MANGLE_NAMESPACE(qInitResources_ ## name) (); \
92 QT_MANGLE_NAMESPACE(qInitResources_ ## name) (); } while (0) 90 QT_MANGLE_NAMESPACE(qInitResources_ ## name) (); } while (0)
91#else
92// Apparently this symbol doesn't exist in the windows and Mac tar balls provided by LL.
93#define Q_INIT_RESOURCE(name) /*nothing*/
93#endif 94#endif
94 95
95//////////////////////////////////////////////////////////////////////////////// 96////////////////////////////////////////////////////////////////////////////////