[Libreoffice-commits] .: sc/source

Noel Power noelp at kemper.freedesktop.org
Fri Nov 26 02:32:11 PST 2010


 sc/source/filter/xml/xmlexprt.cxx |    7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

New commits:
commit e4f7a79c4bea3b735705bfc0531f19a89deaf682
Author: Noel Power <noel.power at novell.com>
Date:   Fri Nov 26 10:30:19 2010 +0000

    fix failing build on windows, use osl_getSystemTime instead of gettimeofday

diff --git a/sc/source/filter/xml/xmlexprt.cxx b/sc/source/filter/xml/xmlexprt.cxx
index d623221..973b857 100644
--- a/sc/source/filter/xml/xmlexprt.cxx
+++ b/sc/source/filter/xml/xmlexprt.cxx
@@ -172,7 +172,7 @@ using ::com::sun::star::uno::UNO_QUERY;
 
 #include <stdio.h>
 #include <string>
-#include <sys/time.h>
+#include <osl/time.h>
 
 namespace {
 
@@ -201,9 +201,8 @@ public:
 private:
     double getTime() const
     {
-        timeval tv;
-        gettimeofday(&tv, NULL);
-        return tv.tv_sec + tv.tv_usec / 1000000.0;
+        TimeValue tv; osl_getSystemTime(&tv);
+        return tv.Seconds + tv.Nanosec / 1000000000.0;
     }
 
     ::std::string msMsg;


More information about the Libreoffice-commits mailing list