Commit b806bd2d authored by Ian Lynagh's avatar Ian Lynagh

Tweak 4038 for Win64

Windows has a smaller C stack than other OSes
parent 9d077912
{-# LANGUAGE ForeignFunctionInterface #-}
{-# LANGUAGE ForeignFunctionInterface, CPP #-}
import Foreign
import Foreign.C
......@@ -21,8 +21,13 @@ foreign import ccall "dynamic" f_io :: FunPtr IOF -> IOF
--
-- On *nix systems, the C stack size can be examined and changed by
-- the "ulimit -s" command.
--
-- Stack size on Windows isn't as generous as on other OSes
#if defined(mingw32_HOST_OS) && defined(x86_64_HOST_ARCH)
n = 100
#else
n = 300
#endif
f :: Int -> IO Int
f 0 = return 42
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment