Perhaps this will fix the windows build?

Change-Id: Ia57ab6bfa9e7fa663b699627cec07d19a378b293
This commit is contained in:
Kohei Yoshida 2012-08-25 00:23:33 -04:00
parent ffc05d9abf
commit 5e7249f995

View file

@ -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
}
}