diff --git a/include/wx/html/webkit.h b/include/wx/html/webkit.h
index 544c9d57a3..3511f7fd92 100644
--- a/include/wx/html/webkit.h
+++ b/include/wx/html/webkit.h
@@ -24,6 +24,8 @@
// Web Kit Control
// ----------------------------------------------------------------------------
+extern WXDLLIMPEXP_DATA_CORE(const char) wxWebKitCtrlNameStr[];
+
class WXDLLIMPEXP_CORE wxWebKitCtrl : public wxControl
{
public:
@@ -36,7 +38,7 @@ public:
const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize, long style = 0,
const wxValidator& validator = wxDefaultValidator,
- const wxString& name = wxT("webkitctrl"))
+ const wxString& name = wxWebKitCtrlNameStr)
{
Create(parent, winID, strURL, pos, size, style, validator, name);
};
@@ -46,7 +48,7 @@ public:
const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize, long style = 0,
const wxValidator& validator = wxDefaultValidator,
- const wxString& name = wxT("webkitctrl"));
+ const wxString& name = wxWebKitCtrlNameStr);
virtual ~wxWebKitCtrl();
void LoadURL(const wxString &url);
diff --git a/src/html/htmlctrl/webkit/webkit.mm b/src/html/htmlctrl/webkit/webkit.mm
index b577a122e5..59192ca436 100644
--- a/src/html/htmlctrl/webkit/webkit.mm
+++ b/src/html/htmlctrl/webkit/webkit.mm
@@ -37,6 +37,8 @@
#define DEBUG_WEBKIT_SIZING 0
+extern WXDLLEXPORT_DATA(const char) wxWebKitCtrlNameStr[] = "webkitctrl";
+
// ----------------------------------------------------------------------------
// macros
// ----------------------------------------------------------------------------