Commits

tibbe committed 14b9a9a

Fix build with GHC 7.3+

  • Participants
  • Parent commits ea8af40

Comments (0)

Files changed (1)

Data/Double/Conversion/FFI.hs

-{-# LANGUAGE ForeignFunctionInterface, MagicHash, UnliftedFFITypes #-}
+{-# LANGUAGE CPP, ForeignFunctionInterface, MagicHash, UnliftedFFITypes #-}
 
 -- |
 -- Module      : Data.Double.Conversion.FFI
     ) where
 
 import Data.Word (Word8)
+#if __GLASGOW_HASKELL__ >= 703
+import Foreign.C.Types (CDouble(CDouble), CInt(CInt))
+#else
 import Foreign.C.Types (CDouble, CInt)
+#endif
 import Foreign.Ptr (Ptr)
 import GHC.Prim (MutableByteArray#)