Perhaps this will fix the windows build?
Change-Id: Ia57ab6bfa9e7fa663b699627cec07d19a378b293
This commit is contained in:
parent
ffc05d9abf
commit
5e7249f995
1 changed files with 6 additions and 5 deletions
|
@ -38,7 +38,9 @@
|
|||
#include <cppunit/extensions/HelperMacros.h>
|
||||
#include <cppunit/plugin/TestPlugIn.h>
|
||||
|
||||
#ifdef UNX
|
||||
#ifdef WNT
|
||||
#include <windows.h>
|
||||
#elif defined UNX
|
||||
#include <unistd.h>
|
||||
#include <time.h>
|
||||
#endif
|
||||
|
@ -156,10 +158,9 @@ namespace ThreadHelper
|
|||
void thread_sleep(sal_Int32 _nSec)
|
||||
{
|
||||
#ifdef WNT //Windows
|
||||
Sleep(_nSec * 10 );
|
||||
#endif
|
||||
#if ( defined UNX )
|
||||
sleep( _nSec );
|
||||
::Sleep(_nSec * 10);
|
||||
#elif defined UNX
|
||||
::sleep(_nSec);
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue