X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;ds=sidebyside;f=ghc%2Fcompiler%2Futils%2FFastString.lhs;h=28aa6b0f312bb71edf7b9bccdddc621318ac1497;hb=1607c878b9e27ac836c178b2c441996127e5d3e9;hp=134bb95522b364246cbae4258a6b937c5636e47e;hpb=e0dc0bc87a534b5a0329d3544c408c5f32d129a4;p=ghc-hetmet.git diff --git a/ghc/compiler/utils/FastString.lhs b/ghc/compiler/utils/FastString.lhs index 134bb95..28aa6b0 100644 --- a/ghc/compiler/utils/FastString.lhs +++ b/ghc/compiler/utils/FastString.lhs @@ -455,6 +455,7 @@ pokeCAString ptr str = go str 0 #if __GLASGOW_HASKELL__ < 600 + mallocForeignPtrBytes :: Int -> IO (ForeignPtr a) mallocForeignPtrBytes n = do r <- mallocBytes n @@ -464,5 +465,10 @@ foreign import ccall unsafe "stdlib.h free" finalizerFree :: Ptr a -> IO () peekCAStringLen = peekCStringLen + +#elif __GLASGOW_HASKELL__ <= 602 + +peekCAStringLen = peekCStringLen + #endif \end{code}