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

Brisset, Nicolas Nicolas.Brisset at eurocopter.com
Tue Dec 1 12:07:33 CET 2009


Yep, that works :-)
Thanks a lot!

> -----Ursprüngliche Nachricht-----
> Von: Peter Kümmel [mailto:syntheticpp at yahoo.com]
> Gesendet: Dienstag, 1. Dezember 2009 08:16
> An: kde-commits at kde.org
> Cc: kst at kde.org
> Betreff: [Kst] branches/work/kst/portto4/kst/src/libkst
> 
> 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;
> _______________________________________________
> Kst mailing list
> Kst at kde.org
> https://mail.kde.org/mailman/listinfo/kst


More information about the Kst mailing list