summaryrefslogtreecommitdiffstats
path: root/Tools/TestWebKitAPI/InjectedBundleMain.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Tools/TestWebKitAPI/InjectedBundleMain.cpp')
-rw-r--r--Tools/TestWebKitAPI/InjectedBundleMain.cpp9
1 files changed, 7 insertions, 2 deletions
diff --git a/Tools/TestWebKitAPI/InjectedBundleMain.cpp b/Tools/TestWebKitAPI/InjectedBundleMain.cpp
index 8ad6c2bad..b2537f737 100644
--- a/Tools/TestWebKitAPI/InjectedBundleMain.cpp
+++ b/Tools/TestWebKitAPI/InjectedBundleMain.cpp
@@ -24,8 +24,11 @@
*/
#include "config.h"
+
+#if WK_HAVE_C_SPI
+
#include "InjectedBundleController.h"
-#include <WebKit2/WKBundleInitialize.h>
+#include <WebKit/WKBundleInitialize.h>
#if defined(WIN32) || defined(_WIN32)
extern "C" __declspec(dllexport)
@@ -34,5 +37,7 @@ extern "C"
#endif
void WKBundleInitialize(WKBundleRef bundle, WKTypeRef initializationUserData)
{
- TestWebKitAPI::InjectedBundleController::shared().initialize(bundle, initializationUserData);
+ TestWebKitAPI::InjectedBundleController::singleton().initialize(bundle, initializationUserData);
}
+
+#endif