diff --git a/tests/controls/textctrltest.cpp b/tests/controls/textctrltest.cpp index 59d0bff977..f79193d1f0 100644 --- a/tests/controls/textctrltest.cpp +++ b/tests/controls/textctrltest.cpp @@ -203,7 +203,7 @@ void TextCtrlTestCase::ReadOnly() // SetEditable() is supposed to override wxTE_READONLY m_text->SetEditable(true); -#ifdef __WXOSX__ +#if defined(__WXOSX_COCOA__) || defined(__WXUNIVERSAL__) // a ready only text field might not have been focusable at all m_text->SetFocus(); #endif