Fix build of time related code on Windows
authorSimon Hausmann <simon.hausmann@digia.com>
Thu, 7 Feb 2013 15:23:46 +0000 (16:23 +0100)
committerLars Knoll <lars.knoll@digia.com>
Sat, 9 Feb 2013 09:40:05 +0000 (10:40 +0100)
Use Q_OS_WIN instead of the non-existent Q_WS_WIN

Change-Id: Ia64908dfdb234bce5f0a2256bb292d91da2fcb68
Reviewed-by: Lars Knoll <lars.knoll@digia.com>
src/v4/qv4dateobject.cpp
src/v4/qv4errorobject.cpp
src/v4/qv4objectproto.cpp
src/v4/qv4stringobject.cpp

index 737a583..c808c78 100644 (file)
@@ -61,7 +61,7 @@
 #include <qv4codegen_p.h>
 #include <qv4isel_masm_p.h>
 
-#ifndef Q_WS_WIN
+#ifndef Q_OS_WIN
 #  include <time.h>
 #  ifndef Q_OS_VXWORKS
 #    include <sys/time.h>
@@ -294,7 +294,7 @@ static inline double MakeDate(double day, double time)
 
 static inline double DaylightSavingTA(double t)
 {
-#ifndef Q_WS_WIN
+#ifndef Q_OS_WIN
     long int tt = (long int)(t / msPerSecond);
     struct tm tmtm;
     if (!localtime_r((const time_t*)&tt, &tmtm))
@@ -319,7 +319,7 @@ static inline double UTC(double t)
 
 static inline double currentTime()
 {
-#ifndef Q_WS_WIN
+#ifndef Q_OS_WIN
     struct timeval tv;
 
     gettimeofday(&tv, 0);
@@ -640,7 +640,7 @@ static inline QString ToLocaleTimeString(double t)
 
 static double getLocalTZA()
 {
-#ifndef Q_WS_WIN
+#ifndef Q_OS_WIN
     struct tm t;
     time_t curr;
     time(&curr);
index fd03f1f..f381a78 100644 (file)
@@ -60,7 +60,7 @@
 #include <qv4codegen_p.h>
 #include <qv4isel_masm_p.h>
 
-#ifndef Q_WS_WIN
+#ifndef Q_OS_WIN
 #  include <time.h>
 #  ifndef Q_OS_VXWORKS
 #    include <sys/time.h>
index 6b7bebc..09ffb6a 100644 (file)
@@ -57,7 +57,7 @@
 #include <qv4codegen_p.h>
 #include <qv4isel_masm_p.h>
 
-#ifndef Q_WS_WIN
+#ifndef Q_OS_WIN
 #  include <time.h>
 #  ifndef Q_OS_VXWORKS
 #    include <sys/time.h>
index 87506ec..a070cc0 100644 (file)
@@ -62,7 +62,7 @@
 #include <qv4codegen_p.h>
 #include <qv4isel_masm_p.h>
 
-#ifndef Q_WS_WIN
+#ifndef Q_OS_WIN
 #  include <time.h>
 #  ifndef Q_OS_VXWORKS
 #    include <sys/time.h>