#ifndef __GSOCKET_STANDALONE__
#include "wx/defs.h"
#include "wx/private/gsocketiohandler.h"
-#include "wx/thread.h" // for wxThread::IsMain() used in assert
#endif
#if defined(__VISAGECPP__)
{
if (flag == m_use_events)
return;
-#if wxUSE_THREADS
- // it is not safe to attach or detach i/o descriptor in child thread
- wxASSERT_MSG( wxThread::IsMain(), "should be called in main thread only" );
-#endif
m_use_events = flag;
EnableEvents(flag);
}