diff options
author | Kohei Yoshida <kohei.yoshida@gmail.com> | 2012-08-25 00:23:33 -0400 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@gmail.com> | 2012-08-25 00:23:33 -0400 |
commit | 5e7249f9958aeb0407e8502b500d6865e5af8750 (patch) | |
tree | 7848dabc04cadadb95467bfe112814f0937091a3 /sal | |
parent | ffc05d9abfccac4d1dc04460fc25a9b16764a83e (diff) |
Perhaps this will fix the windows build?
Change-Id: Ia57ab6bfa9e7fa663b699627cec07d19a378b293
Diffstat (limited to 'sal')
-rw-r--r-- | sal/qa/rtl/uuid/rtl_Uuid.cxx | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/sal/qa/rtl/uuid/rtl_Uuid.cxx b/sal/qa/rtl/uuid/rtl_Uuid.cxx index 363cd7203166..056ae3d8fb4e 100644 --- a/sal/qa/rtl/uuid/rtl_Uuid.cxx +++ b/sal/qa/rtl/uuid/rtl_Uuid.cxx @@ -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 } } |