Adjust CPP

This commit is contained in:
Andrzej Rybczak 2022-08-05 11:50:31 +02:00
parent 0c1463ab83
commit a38364006b

View File

@ -22,7 +22,7 @@ weakThreadId :: ThreadId -> Int
weakThreadId (ThreadId t#) = fromIntegral $ rts_getThreadId t#
foreign import ccall unsafe "rts_getThreadId"
#if __GLASGOW_HASKELL__ >= 903
#if __GLASGOW_HASKELL__ >= 904
-- https://gitlab.haskell.org/ghc/ghc/-/merge_requests/6163
rts_getThreadId :: ThreadId# -> CULLong
#elif __GLASGOW_HASKELL__ >= 900