diff options
author | Albert Astals Cid <aacid@kde.org> | 2005-12-08 18:17:42 +0000 |
---|---|---|
committer | Albert Astals Cid <aacid@kde.org> | 2005-12-08 18:17:42 +0000 |
commit | 830b61bfd1c985fe14ec4d0f6724c8f70e924fc1 (patch) | |
tree | a19eafd3191664e90c530861eb969d006e105698 /goo | |
parent | 0a1c33ed17fd7053ed455da3444856a5dab3c9b4 (diff) |
* configure.ac: Detect if gettimeofday is available, fixes for correct
linking to Qt4 on windows
* goo/GooTimer.[cc|h]: Only build if gettimeofday is available
* poppler/Gfx.cc: Only use the timer for profiling if gettimeofday is
available
* poppler/GlobalParams.cc: Remove extra unlockGlobalParams that was
making windows hang
* splash/SplashFTFontEngine.cc: i need unistd.h on windows also
* splash/SplashFontFile.cc: i need unistd.h on windows also
Diffstat (limited to 'goo')
-rw-r--r-- | goo/GooTimer.cc | 3 | ||||
-rw-r--r-- | goo/GooTimer.h | 4 |
2 files changed, 7 insertions, 0 deletions
diff --git a/goo/GooTimer.cc b/goo/GooTimer.cc index 774ebbef..e9ae2e61 100644 --- a/goo/GooTimer.cc +++ b/goo/GooTimer.cc @@ -9,6 +9,8 @@ #include <config.h> +#ifdef HAVE_GETTIMEOFDAY + #ifdef USE_GCC_PRAGMAS #pragma implementation #endif @@ -61,3 +63,4 @@ GooTimer::getElapsed () return total; } +#endif diff --git a/goo/GooTimer.h b/goo/GooTimer.h index 09d9ae9a..86bc42ff 100644 --- a/goo/GooTimer.h +++ b/goo/GooTimer.h @@ -6,6 +6,8 @@ // //======================================================================== +#ifdef HAVE_GETTIMEOFDAY + #ifndef GOOTIMER_H #define GOOTIMER_H @@ -38,3 +40,5 @@ private: }; #endif + +#endif |