summaryrefslogtreecommitdiff
path: root/goo
diff options
context:
space:
mode:
authorAlbert Astals Cid <aacid@kde.org>2005-12-08 18:17:42 +0000
committerAlbert Astals Cid <aacid@kde.org>2005-12-08 18:17:42 +0000
commit830b61bfd1c985fe14ec4d0f6724c8f70e924fc1 (patch)
treea19eafd3191664e90c530861eb969d006e105698 /goo
parent0a1c33ed17fd7053ed455da3444856a5dab3c9b4 (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.cc3
-rw-r--r--goo/GooTimer.h4
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