[commit: packages/bytestring] 0.10.4.x, master: Fixed logic on CONLIKE hack. (35b38d1)

git at git.haskell.org git at git.haskell.org
Fri Jan 23 22:41:57 UTC 2015


Repository : ssh://git@git.haskell.org/bytestring

On branches: 0.10.4.x,master
Link       : http://git.haskell.org/packages/bytestring.git/commitdiff/35b38d1021c68200bf472eea2342035fbf5c86f7

>---------------------------------------------------------------

commit 35b38d1021c68200bf472eea2342035fbf5c86f7
Author: Duncan Coutts <duncan at community.haskell.org>
Date:   Thu Feb 6 17:10:39 2014 +0000

    Fixed logic on CONLIKE hack.
    
    Based closely on a patch by Stijn van Drongelen <rhymoid at gmail.com>


>---------------------------------------------------------------

35b38d1021c68200bf472eea2342035fbf5c86f7
 Data/ByteString/Builder/Prim/Internal.hs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Data/ByteString/Builder/Prim/Internal.hs b/Data/ByteString/Builder/Prim/Internal.hs
index 4baf81a..fb52404 100644
--- a/Data/ByteString/Builder/Prim/Internal.hs
+++ b/Data/ByteString/Builder/Prim/Internal.hs
@@ -69,7 +69,7 @@ module Data.ByteString.Builder.Prim.Internal (
 import Foreign
 import Prelude hiding (maxBound)
 
-#if defined(__GLASGOW_HASKELL__) && __GLASGOW_HASKELL__ < 611
+#if !(__GLASGOW_HASKELL__ >= 612)
 -- ghc-6.10 and older do not support {-# INLINE CONLIKE #-}
 #define CONLIKE
 #endif



More information about the ghc-commits mailing list