Actions
Bug #93
closedcompilation problem on Windows
Start date:
09/14/2009
Due date:
% Done:
100%
Estimated time:
Description
Reported by Daniel Cavalcanti on the mailing list:
When compiling the WidgetGallery project, StyleLayout.c includes StyleLayout.h which has a "#include <unistd.h>" because of a "sleep(2)" in "load" method.
Since there`s no such thing as unistd.h in windows, the compilation will fail in that system.
I suggest the "sleep(2)" in the load method could be changed into:
boost::this_thread::sleep(boost::posix_time::milliseconds(2000));
and the include to:
#include <boost/thread/thread.hpp>
That should do the trick. I also suggest that all sleep events in Wt (if there are any others in future releases) be performed as such.
Updated by Wim Dumon over 14 years ago
- Status changed from New to Closed
- % Done changed from 0 to 100
Actions