]> git.saurik.com Git - wxWidgets.git/blobdiff - src/unix/threadpsx.cpp
1. added range checks in wxGridStringTable
[wxWidgets.git] / src / unix / threadpsx.cpp
index b30021a122799480fbd6f9a00ca2dc77d2662cee..c9915fa3b44d2e716c9b9344a39faff28b0d58b6 100644 (file)
@@ -835,7 +835,9 @@ bool wxThread::IsMain()
 
 void wxThread::Yield()
 {
+#ifdef HAVE_SCHED_YIELD
     sched_yield();
+#endif
 }
 
 void wxThread::Sleep(unsigned long milliseconds)