Remove obsolete code using sleep() in wxMicroSleep() for BeOS
This code never worked (as proved by the conversion in it which was wrong by a factor of 1e12) and should never be needed anyhow. Simplify configure and give an error, not warning, if neither nanosleep() nor usleep() are available, as otherwise we'd just get a build error later when compiling utilsunx.cpp later.
This commit is contained in:
@@ -192,9 +192,6 @@ void wxMicroSleep(unsigned long microseconds)
|
||||
#endif // Sun
|
||||
|
||||
usleep(microseconds);
|
||||
#elif defined(HAVE_SLEEP)
|
||||
// under BeOS sleep() takes seconds (what about other platforms, if any?)
|
||||
sleep(microseconds * 1000000);
|
||||
#else // !sleep function
|
||||
#error "usleep() or nanosleep() function required for wxMicroSleep"
|
||||
#endif // sleep function
|
||||
|
||||
Reference in New Issue
Block a user