[Kst] branches/work/kst/portto4/kst/src/libkst

Peter Kümmel syntheticpp at yahoo.com
Tue Dec 1 08:15:38 CET 2009


SVN commit 1056902 by kuemmel:

enable win32-code also for mingw

 M  +3 -3      measuretime.cpp  


--- branches/work/kst/portto4/kst/src/libkst/measuretime.cpp #1056901:1056902
@@ -30,7 +30,7 @@
 
 void MeasureTime::setFrequency()
 {
-#ifdef Q_CC_MSVC
+#ifdef Q_OS_WIN
   LARGE_INTEGER proc_freq;
   QueryPerformanceFrequency(&proc_freq);
   frequency =  1.0 / proc_freq.QuadPart;
@@ -61,7 +61,7 @@
 
 void MeasureTime::restart()
 {
-#ifdef Q_CC_MSVC
+#ifdef Q_OS_WIN
   LARGE_INTEGER st;
   QueryPerformanceCounter(&st);
   started = st.QuadPart * frequency;
@@ -76,7 +76,7 @@
 
 void MeasureTime::measure()
 {
-#ifdef Q_CC_MSVC
+#ifdef Q_OS_WIN
   LARGE_INTEGER st;
   QueryPerformanceCounter(&st);
   double now = st.QuadPart * frequency;


More information about the Kst mailing list