| author | Kohei Yoshida <kohei.yoshida@gmail.com> | 2012-08-25 04:23:33 (GMT) |
|---|---|---|
| committer | Kohei Yoshida <kohei.yoshida@gmail.com> | 2012-08-25 04:23:33 (GMT) |
| commit | 5e7249f9958aeb0407e8502b500d6865e5af8750 (patch) (side-by-side diff) | |
| tree | 7848dabc04cadadb95467bfe112814f0937091a3 | |
| parent | ffc05d9abfccac4d1dc04460fc25a9b16764a83e (diff) | |
| download | core-5e7249f9958aeb0407e8502b500d6865e5af8750.zip core-5e7249f9958aeb0407e8502b500d6865e5af8750.tar.gz | |
Perhaps this will fix the windows build?
Change-Id: Ia57ab6bfa9e7fa663b699627cec07d19a378b293
| -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 363cd72..056ae3d 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 } } |
