projects
/
ghc-base.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
add ga_inl, ga_inr
[ghc-base.git]
/
System
/
CPUTime.hsc
diff --git
a/System/CPUTime.hsc
b/System/CPUTime.hsc
index
5a7e696
..
a25c750
100644
(file)
--- a/
System/CPUTime.hsc
+++ b/
System/CPUTime.hsc
@@
-1,3
+1,5
@@
+{-# LANGUAGE CPP, NondecreasingIndentation, ForeignFunctionInterface #-}
+
-----------------------------------------------------------------------------
-- |
-- Module : System.CPUTime
-----------------------------------------------------------------------------
-- |
-- Module : System.CPUTime
@@
-33,7
+35,9
@@
import CPUTime ( getCPUTime, cpuTimePrecision )
#ifdef __GLASGOW_HASKELL__
import Foreign hiding (unsafePerformIO)
import Foreign.C
#ifdef __GLASGOW_HASKELL__
import Foreign hiding (unsafePerformIO)
import Foreign.C
+#if !defined(CLK_TCK)
import System.IO.Unsafe (unsafePerformIO)
import System.IO.Unsafe (unsafePerformIO)
+#endif
#include "HsBaseConfig.h"
#include "HsBaseConfig.h"