diff options
Diffstat (limited to 'linden/indra')
-rwxr-xr-x | linden/indra/media_plugins/webkit/media_plugin_webkit.cpp | 15 |
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 | //////////////////////////////////////////////////////////////////////////////// |